diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-13 16:05:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-13 16:05:47 +0000 |
commit | 3dc9cbbf243f6910d87c149579459dcb0382d94b (patch) | |
tree | 84665cbf0f808d7756de34eb11a3a88d94bcc36a /src/irc | |
parent | dd77726aa8db53886fcb88498b9c05243da60749 (diff) | |
download | irssi-3dc9cbbf243f6910d87c149579459dcb0382d94b.zip |
the last 001 fix was useless, removed the if() part so now the real_address
is changed every time 001 is received :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2440 dbcabf3a-b0e7-0310-adc4-f8d773084564
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; |