mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Fix crash when checking for fuzzy nick match when not on the channel. Reported by Aurelien Delaitre (SATE 2009)
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5126 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e37be456cd
commit
1aa10ece88
1 changed files with 7 additions and 3 deletions
|
|
@ -575,9 +575,13 @@ int nick_match_msg(CHANNEL_REC *channel, const char *msg, const char *nick)
|
|||
if (fullmatch)
|
||||
return TRUE; /* matched without fuzzyness */
|
||||
|
||||
/* matched with some fuzzyness .. check if there's an exact match
|
||||
for some other nick in the same channel. */
|
||||
return nick_nfind(channel, msgstart, (int) (msg-msgstart)) == NULL;
|
||||
if (channel != NULL) {
|
||||
/* matched with some fuzzyness .. check if there's an exact match
|
||||
for some other nick in the same channel. */
|
||||
return nick_nfind(channel, msgstart, (int) (msg-msgstart)) == NULL;
|
||||
} else {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
void nicklist_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue