summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Matilainen <jari.matilainen@gmail.com>2015-09-22 23:09:55 +0200
committerJari Matilainen <jari.matilainen@gmail.com>2015-09-22 23:09:55 +0200
commitb5c3e90802e926e35ad9a4f1f02403578a3ff392 (patch)
tree24e7df96797642b83c487016c2bed2142513c31b
parent5a4be0f4f5f36787e98215d87b88a50a5f7e7e01 (diff)
downloadirssi-b5c3e90802e926e35ad9a4f1f02403578a3ff392.zip
Fix return value from nick_match_msg_everywhere
-rw-r--r--src/core/nicklist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/nicklist.c b/src/core/nicklist.c
index c88f5d6d..160deb6a 100644
--- a/src/core/nicklist.c
+++ b/src/core/nicklist.c
@@ -577,7 +577,12 @@ int nick_match_msg_everywhere(CHANNEL_REC *channel, const char *msg, const char
g_return_val_if_fail(nick != NULL, FALSE);
g_return_val_if_fail(msg != NULL, FALSE);
- return stristr_full(msg, nick);
+ char *ret = stristr_full(msg, nick);
+
+ if (ret != NULL)
+ return TRUE;
+
+ return FALSE;
}
void nicklist_init(void)