1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

trigger: add plugin name in error messages

This commit is contained in:
Sebastien Helleu
2014-03-10 21:10:23 +01:00
parent 765b603cb2
commit acb24d9d2a
15 changed files with 428 additions and 420 deletions
+6 -4
View File
@@ -194,15 +194,17 @@ trigger_config_change_trigger_regex (void *data, struct t_config_option *option)
break;
case -1: /* format error */
weechat_printf (NULL,
_("%sError: invalid format for option \"regex\", "
_("%s%s: invalid format for option \"regex\", "
"see /help trigger.trigger.%s.regex"),
weechat_prefix ("error"), ptr_trigger->name);
weechat_prefix ("error"), TRIGGER_PLUGIN_NAME,
ptr_trigger->name);
break;
case -2: /* regex compilation error */
weechat_printf (NULL,
_("%sError: invalid regular expression in option "
_("%s%s: invalid regular expression in option "
"\"regex\", see /help trigger.trigger.%s.regex"),
weechat_prefix ("error"), ptr_trigger->name);
weechat_prefix ("error"), TRIGGER_PLUGIN_NAME,
ptr_trigger->name);
break;
case -3: /* memory error */
weechat_printf (NULL,