1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

relay: fix crash on /upgrade when nick in irc client is not yet set

This commit is contained in:
Sebastien Helleu
2011-04-25 11:19:47 +02:00
parent 7dabe70800
commit 4130ea6e77
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.5-rc1, 2011-04-24
v0.3.5-rc1, 2011-04-25
Version 0.3.5 (under dev!)
@@ -84,6 +84,7 @@ Version 0.3.5 (under dev!)
* irc: add many missing commands for target buffer (options irc.msgbuffer.xxx)
(bug #32216)
* lua: fix crash when many scripts are executing callbacks at same time
* relay: fix crash on /upgrade when nick in irc client is not yet set
* relay: allow colon in server password received from client
* relay: do not send join for private buffers to client
* rmodifier: fix reload of file rmodifier.conf
+4 -1
View File
@@ -1017,7 +1017,10 @@ relay_client_irc_alloc_with_infolist (struct t_relay_client *client,
{
RELAY_IRC_DATA(client, address) = strdup (weechat_infolist_string (infolist, "address"));
RELAY_IRC_DATA(client, password_ok) = weechat_infolist_integer (infolist, "password_ok");
RELAY_IRC_DATA(client, nick) = strdup (weechat_infolist_string (infolist, "nick"));
if (weechat_infolist_string (infolist, "nick"))
RELAY_IRC_DATA(client, nick) = strdup (weechat_infolist_string (infolist, "nick"));
else
RELAY_IRC_DATA(client, nick) = NULL;
RELAY_IRC_DATA(client, user_received) = weechat_infolist_integer (infolist, "user_received");
RELAY_IRC_DATA(client, connected) = weechat_infolist_integer (infolist, "connected");
if (RELAY_IRC_DATA(client, connected))