1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request from ailin-nemui/setname-fix

fix crash in setname
This commit is contained in:
ailin-nemui 2019-08-16 21:24:04 +02:00 committed by GitHub
commit 4d01170aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,6 +454,7 @@ static void event_setname(SERVER_REC *server, const char *data, const char *nick
if (!IS_IRC_SERVER(server)) if (!IS_IRC_SERVER(server))
return; return;
g_return_if_fail(nick != NULL);
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
if (*data == ':') data++; if (*data == ':') data++;