summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-callback.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-13 17:37:22 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-13 17:37:22 +0100
commitd74259303f3dbb0985514fe6ad4cb7e154c738cb (patch)
tree6cbd9f2325717a5e95cfdfa71647b5adde6c36bf /src/plugins/trigger/trigger-callback.c
parente36c49995b8bb3b21784db26281e81ce07e191b9 (diff)
downloadweechat-d74259303f3dbb0985514fe6ad4cb7e154c738cb.zip
trigger: fix call of IRC message parser on non-IRC messages in modifier callback
Diffstat (limited to 'src/plugins/trigger/trigger-callback.c')
-rw-r--r--src/plugins/trigger/trigger-callback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index 859255a3a..6dc197030 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -474,10 +474,10 @@ trigger_callback_modifier_cb (void *data, const char *modifier,
num_tags = 0;
/* split IRC message (if string is an IRC message) */
- if (strncmp (modifier, "irc_in_", 7)
- || strncmp (modifier, "irc_in2_", 8)
- || strncmp (modifier, "irc_out1_", 9)
- || strncmp (modifier, "irc_out_", 8))
+ if ((strncmp (modifier, "irc_in_", 7) == 0)
+ || (strncmp (modifier, "irc_in2_", 8) == 0)
+ || (strncmp (modifier, "irc_out1_", 9) == 0)
+ || (strncmp (modifier, "irc_out_", 8) == 0))
{
extra_vars = trigger_callback_irc_message_parse (string,
modifier_data);