mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
If queried nick did a nick change, it might have crashed irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2599 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
649253e180
commit
86dcbd11e4
@ -89,9 +89,10 @@ static void event_nick(SERVER_REC *server, const char *data,
|
||||
char *params, *nick;
|
||||
|
||||
query = query_find(server, orignick);
|
||||
if (query != NULL && strcmp(query->name, nick) != 0) {
|
||||
if (query != NULL) {
|
||||
params = event_get_params(data, 1, &nick);
|
||||
query_change_nick(query, nick);
|
||||
if (strcmp(query->name, nick) != 0)
|
||||
query_change_nick(query, nick);
|
||||
g_free(params);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user