summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-01-28 02:37:54 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-01-28 02:37:54 +0000
commita6ee439c263f9560c6b7711dd4a4d8e8c24f11aa (patch)
treee74283bec490470b5d524550007b901b28b629ce /src
parentebe60cca559844324c76ef01599157aeab76b069 (diff)
downloadirssi-a6ee439c263f9560c6b7711dd4a4d8e8c24f11aa.zip
"Your nick is owned by .." message was checked always with default nick.
This wasn't wanted with eg. /IRCNET ADD -nick. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2350 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/fe-events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index edb5496e..8ba3bd3e 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -301,8 +301,8 @@ static void event_connected(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
- nick = settings_get_str("nick");
- if (*nick == '\0' || g_strcasecmp(server->nick, nick) == 0)
+ nick = server->connrec->nick;
+ if (g_strcasecmp(server->nick, nick) == 0)
return;
/* someone has our nick, find out who. */