mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Improved nick_match_msg() - it shouldn't give wrong matches as easily
anymore. Also supports multiple targets in one line (nick1,nick2: hello) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@996 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
057ec3b8a8
commit
6e19541f46
6 changed files with 82 additions and 29 deletions
|
|
@ -63,7 +63,9 @@ static void sig_message_public(SERVER_REC *server, const char *msg,
|
|||
char *color;
|
||||
|
||||
chanrec = channel_find(server, target);
|
||||
for_me = nick_match_msg(server, msg, server->nick);
|
||||
g_return_if_fail(chanrec != NULL);
|
||||
|
||||
for_me = nick_match_msg(chanrec, msg, server->nick);
|
||||
color = for_me ? NULL :
|
||||
hilight_find_nick(target, nick, address, MSGLEVEL_PUBLIC, msg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue