From 98fae55006095a6038437909c35403abed5bc8b6 Mon Sep 17 00:00:00 2001 From: wowaname Date: Sat, 1 Oct 2016 01:44:25 +0000 Subject: [PATCH] yiff.pl: add error prefix to print statement --- scripts/yiff.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/yiff.pl b/scripts/yiff.pl index 30a82f6..aaa0a5d 100644 --- a/scripts/yiff.pl +++ b/scripts/yiff.pl @@ -74,7 +74,8 @@ sub yiff { $yiff =~ s/\$channel/$channel/g; weechat::command($buffer, "/me $yiff"); } else { - weechat::print($buffer, "Cannot open '$dbfile' ". + weechat::print($buffer, weechat::prefix('error'). + "Cannot open '$dbfile' ". "(make sure the db directory and file exists)"); return weechat::WEECHAT_RC_ERROR; }