From bfae72766ea2da6db76f6f23bccaf7a5dd708c94 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 31 Mar 2002 19:07:23 +0000 Subject: 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 --- src/core/servers.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/servers.c') diff --git a/src/core/servers.c b/src/core/servers.c index a5a8c701..f99b238f 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -331,7 +331,6 @@ static int server_remove_channels(SERVER_REC *server) for (tmp = server->channels; tmp != NULL; tmp = tmp->next) { CHANNEL_REC *channel = tmp->data; - channel->server = NULL; channel_destroy(channel); found = TRUE; } -- cgit v1.2.3