summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-13 16:05:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-13 16:05:47 +0000
commit3dc9cbbf243f6910d87c149579459dcb0382d94b (patch)
tree84665cbf0f808d7756de34eb11a3a88d94bcc36a /src/irc
parentdd77726aa8db53886fcb88498b9c05243da60749 (diff)
downloadirssi-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.c12
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;