mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
fix crash in setname
This commit is contained in:
parent
d191c6e94e
commit
255d850c4d
@ -454,6 +454,7 @@ static void event_setname(SERVER_REC *server, const char *data, const char *nick
|
||||
if (!IS_IRC_SERVER(server))
|
||||
return;
|
||||
|
||||
g_return_if_fail(nick != NULL);
|
||||
g_return_if_fail(data != NULL);
|
||||
if (*data == ':') data++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user