diff options
Diffstat (limited to 'src/irc/core/channel-rejoin.c')
-rw-r--r-- | src/irc/core/channel-rejoin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/core/channel-rejoin.c b/src/irc/core/channel-rejoin.c index 89abae0c..b255e228 100644 --- a/src/irc/core/channel-rejoin.c +++ b/src/irc/core/channel-rejoin.c @@ -59,6 +59,9 @@ static void event_target_unavailable(const char *data, IRC_SERVER_REC *server) static void sig_disconnected(IRC_SERVER_REC *server) { + if (!irc_server_check(server)) + return; + g_slist_foreach(server->rejoin_channels, (GFunc) g_free, NULL); g_slist_free(server->rejoin_channels); } |