1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +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
+5 -4
View File
@@ -433,9 +433,10 @@ trigger_hook (struct t_trigger *trigger)
if (!trigger->hooks)
{
weechat_printf (NULL,
_("%sError: unable to create hook for trigger \"%s\" "
_("%s%s: unable to create hook for trigger \"%s\" "
"(bad arguments)"),
weechat_prefix ("error"), trigger->name);
weechat_prefix ("error"), TRIGGER_PLUGIN_NAME,
trigger->name);
}
if (argv)
@@ -837,9 +838,9 @@ trigger_new_with_options (const char *name, struct t_config_option **options)
&new_trigger->regex) < 0)
{
weechat_printf (NULL,
_("%sError: invalid regular expression in trigger "
_("%s%s: invalid regular expression in trigger "
"\"%s\""),
weechat_prefix ("error"),
weechat_prefix ("error"), TRIGGER_PLUGIN_NAME,
name);
}
trigger_split_command (weechat_config_string (new_trigger->options[TRIGGER_OPTION_COMMAND]),