diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-31 19:07:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-31 19:07:23 +0000 |
commit | bfae72766ea2da6db76f6f23bccaf7a5dd708c94 (patch) | |
tree | 25ea17fb67008ee938dc15d2f94fbb394fb41993 /src/fe-common | |
parent | dc4b7456dcb1f6806b7a68188cb4f1db78bf75c3 (diff) | |
download | irssi-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/fe-common')
-rw-r--r-- | src/fe-common/core/fe-channels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c index ec5d395b..712ae1c4 100644 --- a/src/fe-common/core/fe-channels.c +++ b/src/fe-common/core/fe-channels.c @@ -67,7 +67,7 @@ static void signal_channel_destroyed(CHANNEL_REC *channel) window_item_destroy((WI_ITEM_REC *) channel); if (channel->joined && !channel->left && - channel->server != NULL) { + !channel->server->disconnected) { /* kicked out from channel */ window_bind_add(window, channel->server->tag, channel->name); |