yiff.pl: add error prefix to print statement

This commit is contained in:
wowaname 2016-10-01 01:44:25 +00:00
parent 967d0b1ea9
commit 98fae55006

View File

@ -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;
}