diff options
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-servers.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 11ada92c..be6e1229 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -454,13 +454,11 @@ static void event_connected(IRC_SERVER_REC *server, const char *data, const char server->nick = g_strdup(nick); } - if (server->real_address == NULL) { - /* set the server address */ - g_free(server->real_address); - server->real_address = from == NULL ? - g_strdup(server->connrec->address) : /* shouldn't happen.. */ - g_strdup(from); - } + /* set the server address */ + g_free(server->real_address); + server->real_address = from == NULL ? + g_strdup(server->connrec->address) : /* shouldn't happen.. */ + g_strdup(from); /* last welcome message found - commands can be sent to server now. */ server->connected = 1; |