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

trigger: do not hook anything if the trigger is disabled (closes #405)

This commit is contained in:
Sébastien Helleu
2015-04-18 10:04:26 +02:00
parent 32d165f1c4
commit 1054339be7
3 changed files with 6 additions and 3 deletions
-1
View File
@@ -353,7 +353,6 @@ trigger_command_set_enabled (struct t_trigger *trigger,
{
if (weechat_config_boolean (trigger->options[TRIGGER_OPTION_ENABLED]))
{
trigger_unhook (trigger);
trigger_hook (trigger);
weechat_printf_tags (NULL, "no_trigger",
_("Trigger \"%s\" restarted"),