mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
/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
This commit is contained in:
parent
833bf37831
commit
b6de29afbd
2 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue