summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-04 10:30:41 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-04 10:30:41 +0000
commit484f62f7571f94ff85515363afa6d6fc85e2aaba (patch)
tree8cf90aa3d0baa10cd1d14a685e7f0814dd5b80b7 /src/irc
parentf167516d23badb13fa99b8aba1b7bb784f24386b (diff)
downloadirssi-484f62f7571f94ff85515363afa6d6fc85e2aaba.zip
added server_change_nick() function for servers.[ch]. Lots of fixes for
support to multiple identical nicks. Should work now properly :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1351 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-nicklist.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c
index 9795c414..5863dcc9 100644
--- a/src/irc/core/irc-nicklist.c
+++ b/src/irc/core/irc-nicklist.c
@@ -300,11 +300,7 @@ static void event_nick(SERVER_REC *server, const char *data,
if (g_strcasecmp(orignick, server->nick) == 0) {
/* You changed your nick */
- g_free(server->connrec->nick);
- g_free(server->nick);
- server->connrec->nick = g_strdup(nick);
- server->nick = g_strdup(nick);
- signal_emit("server nick changed", 1, server);
+ server_change_nick(server, nick);
}
nicklist_rename(server, orignick, nick);