mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
just some extra check - might fix some crash..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1892 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d4b0750d09
commit
9dc3176efd
@ -279,7 +279,7 @@ static void notifylist_check_join(IRC_SERVER_REC *server, const char *nick,
|
||||
if (rec != NULL && rec->join_announced) return;
|
||||
if (rec == NULL) rec = notify_nick_create(server, nick);
|
||||
|
||||
user = g_strdup(userhost);
|
||||
user = g_strdup(userhost == NULL ? "" : userhost);
|
||||
host = strchr(user, '@');
|
||||
if (host != NULL) *host++ = '\0'; else host = "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user