mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fix crash on netsplit+join after /upgrade from 0.8.9
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4047 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9548cbfadb
commit
0f54aa2285
@ -434,7 +434,7 @@ static const char *get_nick_flags(SERVER_REC *server)
|
|||||||
const char *prefix =
|
const char *prefix =
|
||||||
g_hash_table_lookup(irc_server->isupport, "PREFIX");
|
g_hash_table_lookup(irc_server->isupport, "PREFIX");
|
||||||
|
|
||||||
prefix = strchr(prefix, ')');
|
prefix = prefix == NULL ? NULL : strchr(prefix, ')');
|
||||||
return prefix == NULL ? "" : prefix+1;
|
return prefix == NULL ? "" : prefix+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user