diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-14 21:42:37 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-14 21:42:37 +0000 |
commit | a2d0944eee3e3387d0929dd7defbbe123f77148f (patch) | |
tree | ec5db80a40a826af6e5b4505b7210b7a254a229f /src/fe-common | |
parent | ee83de55264eae44fe59095e8072aa540b71b0b6 (diff) | |
download | irssi-a2d0944eee3e3387d0929dd7defbbe123f77148f.zip |
Some server reconnection fixes. Reconnect now allows you to have
more than one reconnection to the same server.
Changed the deinit() order in IRC module to cleanly free all memory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@607 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/fe-irc-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-irc-server.c b/src/fe-common/irc/fe-irc-server.c index cf85c103..3094c5bd 100644 --- a/src/fe-common/irc/fe-irc-server.c +++ b/src/fe-common/irc/fe-irc-server.c @@ -96,7 +96,7 @@ static void cmd_server_add(const char *data) if (*addr == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); port = *portstr == '\0' ? 6667 : atoi(portstr); - rec = server_setup_find(addr, port); + rec = server_setup_find_port(addr, port); if (rec == NULL) { rec = g_new0(SETUP_SERVER_REC, 1); rec->address = g_strdup(addr); @@ -148,7 +148,7 @@ static void cmd_server_remove(const char *data) if (*addr == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); port = *portstr == '\0' ? -1 : atoi(portstr); - rec = server_setup_find(addr, port); + rec = server_setup_find_port(addr, port); if (rec == NULL) printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_SETUPSERVER_NOT_FOUND, addr, port); else { |