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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user