diff options
Diffstat (limited to 'src/plugins/trigger/trigger.c')
-rw-r--r-- | src/plugins/trigger/trigger.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c index afdb292d8..196f7a221 100644 --- a/src/plugins/trigger/trigger.c +++ b/src/plugins/trigger/trigger.c @@ -279,8 +279,7 @@ trigger_unhook (struct t_trigger *trigger) { for (i = 0; i < trigger->hooks_count; i++) { - if (trigger->hooks[i]) - weechat_unhook (trigger->hooks[i]); + weechat_unhook (trigger->hooks[i]); } free (trigger->hooks); trigger->hooks = NULL; |