mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Fix return value from nick_match_msg_everywhere, remove #include 'settings.h'
This commit is contained in:
parent
b5c3e90802
commit
3f2eaf1d3a
1 changed files with 1 additions and 7 deletions
|
|
@ -21,7 +21,6 @@
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "settings.h"
|
|
||||||
|
|
||||||
#include "servers.h"
|
#include "servers.h"
|
||||||
#include "channels.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(nick != NULL, FALSE);
|
||||||
g_return_val_if_fail(msg != NULL, FALSE);
|
g_return_val_if_fail(msg != NULL, FALSE);
|
||||||
|
|
||||||
char *ret = stristr_full(msg, nick);
|
return stristr_full(msg, nick) != NULL;
|
||||||
|
|
||||||
if (ret != NULL)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void nicklist_init(void)
|
void nicklist_init(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue