mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Add new setting to optionally modify behaviour of hilight_nick_matches
Fix indentation Remove unused variables that crept into the nick_match_msg_everywhere function
This commit is contained in:
parent
2d69deb0a3
commit
5a4be0f4f5
3 changed files with 14 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "module.h"
|
||||
#include "signals.h"
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "servers.h"
|
||||
#include "channels.h"
|
||||
|
|
@ -571,6 +572,14 @@ int nick_match_msg(CHANNEL_REC *channel, const char *msg, const char *nick)
|
|||
}
|
||||
}
|
||||
|
||||
int nick_match_msg_everywhere(CHANNEL_REC *channel, const char *msg, const char *nick)
|
||||
{
|
||||
g_return_val_if_fail(nick != NULL, FALSE);
|
||||
g_return_val_if_fail(msg != NULL, FALSE);
|
||||
|
||||
return stristr_full(msg, nick);
|
||||
}
|
||||
|
||||
void nicklist_init(void)
|
||||
{
|
||||
signal_add_first("channel created", (SIGNAL_FUNC) sig_channel_created);
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ int nicklist_compare(NICK_REC *p1, NICK_REC *p2, const char *nick_prefix);
|
|||
|
||||
/* Check is `msg' is meant for `nick'. */
|
||||
int nick_match_msg(CHANNEL_REC *channel, const char *msg, const char *nick);
|
||||
int nick_match_msg_everywhere(CHANNEL_REC *channel, const char *msg, const char *nick);
|
||||
|
||||
void nicklist_init(void);
|
||||
void nicklist_deinit(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue