diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-27 00:25:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-27 00:25:26 +0000 |
commit | b6de29afbd9a7ddc3e9f10c7bf52b19190df3dd0 (patch) | |
tree | 9d1dfef0d06ef0e8e5875b31147c220121124ea2 /src/core/servers.c | |
parent | 833bf37831325d2da3c345d253a38c6b33063cd1 (diff) | |
download | irssi-b6de29afbd9a7ddc3e9f10c7bf52b19190df3dd0.zip |
/SERVER irc.server.org 1234 now connects to port 1234 always even if
some other port is specified for the same server in setup.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@682 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/servers.c')
-rw-r--r-- | src/core/servers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/servers.c b/src/core/servers.c index 2abc7434..d857de13 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -204,12 +204,12 @@ int server_start_connect(SERVER_REC *server) const char *connect_address; g_return_val_if_fail(server != NULL, FALSE); + if (server->connrec->port <= 0) return FALSE; MODULE_DATA_INIT(server); server->type = module_get_uniq_id("SERVER", 0); server->nick = g_strdup(server->connrec->nick); - if (server->connrec->port <= 0) server->connrec->port = 6667; if (server->connrec->username == NULL || *server->connrec->username == '\0') { g_free_not_null(server->connrec->username); |