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:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user