diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2004-10-12 17:06:11 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-10-12 17:06:11 +0000 |
commit | 2a0ba14c0c55fd2b902c1cd24360b55c72ac5885 (patch) | |
tree | 2065929507c8b707c56a1748de0a1581a69f0f96 /src/irc | |
parent | 6c86a5918337a9bc9d6b8b40fa3172fc14a58a65 (diff) | |
download | irssi-2a0ba14c0c55fd2b902c1cd24360b55c72ac5885.zip |
Fix crash with non-irc servers
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3318 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-servers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 8e6f94fb..e1e66491 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -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 : |