1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

Fix bug with /upgrade on ssl servers with prefix modes and chars

The value of isupport, prefix_modes and prefix_chars in irc server are now
removed on connection, not on disconnection.
This commit is contained in:
Sebastien Helleu
2010-11-10 12:21:18 +01:00
parent 3248833125
commit 9ea73fda4b
+17 -15
View File
@@ -3255,6 +3255,23 @@ irc_server_connect (struct t_irc_server *server)
return 0;
}
/* free some old values (from a previous connection to server) */
if (server->isupport)
{
free (server->isupport);
server->isupport = NULL;
}
if (server->prefix_modes)
{
free (server->prefix_modes);
server->prefix_modes = NULL;
}
if (server->prefix_chars)
{
free (server->prefix_chars);
server->prefix_chars = NULL;
}
proxy_type = NULL;
proxy_ipv6 = NULL;
proxy_address = NULL;
@@ -3543,21 +3560,6 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
server->nick_modes = NULL;
weechat_bar_item_update ("input_prompt");
}
if (server->isupport)
{
free (server->isupport);
server->isupport = NULL;
}
if (server->prefix_modes)
{
free (server->prefix_modes);
server->prefix_modes = NULL;
}
if (server->prefix_chars)
{
free (server->prefix_chars);
server->prefix_chars = NULL;
}
server->is_away = 0;
server->away_time = 0;
server->lag = 0;