diff options
author | Timo Sirainen <cras@irssi.org> | 2002-08-26 19:40:04 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-08-26 19:40:04 +0000 |
commit | a6c4e4737602be55e62ab180b550d959d547c269 (patch) | |
tree | 314bb9354065172e10c2226dd5609d31c83f39c8 /src/irc | |
parent | 1539cf81f3642c5afd1267b3adc4fc2d46308ceb (diff) | |
download | irssi-a6c4e4737602be55e62ab180b550d959d547c269.zip |
A few missing parts from SSL patch.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2891 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-servers.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 5e5dba55..5ead92f9 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -166,8 +166,10 @@ SERVER_REC *irc_server_init_connect(SERVER_CONNECT_REC *conn) server->connrec = ircconn; server_connect_ref(conn); - if (server->connrec->port <= 0) - server->connrec->port = 6667; + if (server->connrec->port <= 0) { + server->connrec->port = + server->connrec->use_ssl ? 9999 : 6667; + } server->cmd_queue_speed = ircconn->cmd_queue_speed > 0 ? ircconn->cmd_queue_speed : settings_get_int("cmd_queue_speed"); @@ -184,6 +186,7 @@ SERVER_REC *irc_server_init_connect(SERVER_CONNECT_REC *conn) ircconn->max_whois : DEFAULT_MAX_WHOIS; server->max_msgs_in_cmd = ircconn->max_msgs > 0 ? ircconn->max_msgs : DEFAULT_MAX_MSGS; + server->connrec->use_ssl = conn->use_ssl; server_connect_init((SERVER_REC *) server); return (SERVER_REC *) server; |