mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
when destroying channel, it really should be removed also from
server->channels list. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2829 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
700df91429
commit
6871f558b5
2 changed files with 6 additions and 4 deletions
|
|
@ -77,8 +77,9 @@ void channel_destroy(CHANNEL_REC *channel)
|
|||
channel->destroying = TRUE;
|
||||
|
||||
channels = g_slist_remove(channels, channel);
|
||||
if (!channel->server->disconnected)
|
||||
channel->server->channels = g_slist_remove(channel->server->channels, channel);
|
||||
channel->server->channels =
|
||||
g_slist_remove(channel->server->channels, channel);
|
||||
|
||||
signal_emit("channel destroyed", 1, channel);
|
||||
|
||||
MODULE_DATA_DEINIT(channel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue