From 3f2eaf1d3a67eddd42dd88eccb39402d45297fcb Mon Sep 17 00:00:00 2001 From: Jari Matilainen Date: Tue, 22 Sep 2015 23:16:41 +0200 Subject: [PATCH] Fix return value from nick_match_msg_everywhere, remove #include 'settings.h' --- src/core/nicklist.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/nicklist.c b/src/core/nicklist.c index 160deb6a..770b0afc 100644 --- a/src/core/nicklist.c +++ b/src/core/nicklist.c @@ -21,7 +21,6 @@ #include "module.h" #include "signals.h" #include "misc.h" -#include "settings.h" #include "servers.h" #include "channels.h" @@ -577,12 +576,7 @@ 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); - char *ret = stristr_full(msg, nick); - - if (ret != NULL) - return TRUE; - - return FALSE; + return stristr_full(msg, nick) != NULL; } void nicklist_init(void)