diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-07 13:15:49 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-07 13:15:49 +0200 |
commit | 36736564abf243206cb1cbff109119e7351617e2 (patch) | |
tree | 151b48443842e9fe10930dcf6b8ff00e9e24af49 /src/plugins/irc/irc-server.h | |
parent | 55b5130a8725da2e261464ebc93553fe5d0c8512 (diff) | |
download | weechat-36736564abf243206cb1cbff109119e7351617e2.zip |
Fix crash/bug when option "addresses" for an IRC server is unset or changed when WeeChat is connected to this server (bug #31268)
Diffstat (limited to 'src/plugins/irc/irc-server.h')
-rw-r--r-- | src/plugins/irc/irc-server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.h b/src/plugins/irc/irc-server.h index 71555a76c..e71294722 100644 --- a/src/plugins/irc/irc-server.h +++ b/src/plugins/irc/irc-server.h @@ -119,7 +119,9 @@ struct t_irc_server char **addresses_array; /* addresses (after split) */ int *ports_array; /* ports for addresses */ int index_current_address; /* current address index in array */ + char *current_address; /* current address */ char *current_ip; /* current IP address */ + int current_port; /* current port */ int sock; /* socket for server (IPv4 or IPv6) */ struct t_hook *hook_connect; /* connection hook */ struct t_hook *hook_fd; /* hook for server socket */ |