summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-10 00:38:48 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-10 00:38:48 +0000
commitd3250be9569f95df19fd35b8a95f77fdff47905a (patch)
tree11483f33f77229c1738a2b952e6c349e104fb735 /src
parent0f4ec3deacf40f9d7cd1beb819a735add516ecc4 (diff)
downloadirssi-d3250be9569f95df19fd35b8a95f77fdff47905a.zip
Don't change client's nick every time someone else changes nick..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@830 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/proxy/listen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index 2d34ec0b..cdb31d4b 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -425,10 +425,14 @@ static void sig_server_disconnected(IRC_SERVER_REC *server)
}
}
-static void event_nick(const char *data, IRC_SERVER_REC *server)
+static void event_nick(const char *data, IRC_SERVER_REC *server,
+ const char *orignick)
{
GSList *tmp;
+ if (g_strcasecmp(orignick, server->nick) != 0)
+ return;
+
if (*data == ':') data++;
for (tmp = proxy_clients; tmp != NULL; tmp = tmp->next) {
CLIENT_REC *rec = tmp->data;