summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-08-26 18:01:11 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-08-26 18:01:11 +0200
commiteb57354984dd1394f8b50911cee58180bbff2e88 (patch)
treea585a6a6ad14c2963a7c3b0b619894e235486439 /src/plugins
parent451dd58f169f8fb863be8aa5d6e2d48e14605403 (diff)
downloadweechat-eb57354984dd1394f8b50911cee58180bbff2e88.zip
Clear nicklist for all channels when disconnected from IRC server
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index e15df5393..c094d85f9 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -2254,6 +2254,7 @@ irc_server_disconnect (struct t_irc_server *server, int reconnect)
for (ptr_channel = server->channels; ptr_channel;
ptr_channel = ptr_channel->next_channel)
{
+ irc_nick_free_all (ptr_channel);
weechat_printf (ptr_channel->buffer,
_("%s: disconnected from server"),
"irc");