mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fix crash with non-irc servers
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3318 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6c86a59183
commit
2a0ba14c0c
@ -485,8 +485,8 @@ static int sig_set_user_mode(IRC_SERVER_REC *server)
|
||||
const char *mode;
|
||||
char *newmode, *args;
|
||||
|
||||
if (g_slist_find(servers, server) == NULL)
|
||||
return 0; /* got disconnected */
|
||||
if (!IS_IRC_SERVER(server) || g_slist_find(servers, server) == NULL)
|
||||
return 0; /* not an irc server or got disconnected */
|
||||
|
||||
mode = server->connrec->usermode;
|
||||
newmode = server->usermode == NULL ? NULL :
|
||||
|
Loading…
Reference in New Issue
Block a user