summaryrefslogtreecommitdiff
path: root/src/irc/core/channels-query.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-31 19:07:23 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-31 19:07:23 +0000
commitbfae72766ea2da6db76f6f23bccaf7a5dd708c94 (patch)
tree25ea17fb67008ee938dc15d2f94fbb394fb41993 /src/irc/core/channels-query.c
parentdc4b7456dcb1f6806b7a68188cb4f1db78bf75c3 (diff)
downloadirssi-bfae72766ea2da6db76f6f23bccaf7a5dd708c94.zip
Don't set channel->server = NULL when disconnecting, so scripts can still
use it in eg. "channel destroyed". Patch by Qrczak git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2648 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channels-query.c')
-rw-r--r--src/irc/core/channels-query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c
index 06cfdb3a..bc5ebf3a 100644
--- a/src/irc/core/channels-query.c
+++ b/src/irc/core/channels-query.c
@@ -132,7 +132,7 @@ static void sig_channel_destroyed(IRC_CHANNEL_REC *channel)
{
g_return_if_fail(channel != NULL);
- if (IS_IRC_CHANNEL(channel) && channel->server != NULL &&
+ if (IS_IRC_CHANNEL(channel) && !channel->server->disconnected &&
!channel->synced)
query_remove_all(channel);
}