mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1292 from ailin-nemui/nonick
don't bother if we don't have a nick
This commit is contained in:
commit
e0b98e1fa5
@ -72,6 +72,11 @@ static void event_join(IRC_SERVER_REC *server, const char *data,
|
||||
|
||||
/* add user to nicklist */
|
||||
nickrec = irc_nicklist_insert(chanrec, nick, FALSE, FALSE, FALSE, send_massjoin, NULL);
|
||||
if (nickrec == NULL) {
|
||||
/* invalid nick? */
|
||||
g_free(params);
|
||||
return;
|
||||
}
|
||||
if (*account != '\0' && g_strcmp0(nickrec->account, account) != 0) {
|
||||
nicklist_set_account(CHANNEL(chanrec), nickrec, account);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user