From 443ba1a97da454bbc4fb0439573e00b0225728a7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 21 Jan 2001 00:49:52 +0000 Subject: nickliset_set_host() for setting host, sends signal "nicklist host changed". Changed "nick gone|serverop" -> "nicklist gone|serverop changed" git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1137 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-nicklist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/irc/core/irc-nicklist.c') diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c index 245d1fdd..807934d2 100644 --- a/src/irc/core/irc-nicklist.c +++ b/src/irc/core/irc-nicklist.c @@ -134,8 +134,11 @@ static void event_who(SERVER_REC *server, const char *data) nickrec = chanrec == NULL ? NULL : nicklist_find(chanrec, nick); if (nickrec != NULL) { - if (nickrec->host == NULL) - nickrec->host = g_strdup_printf("%s@%s", user, host); + if (nickrec->host == NULL) { + char *str = g_strdup_printf("%s@%s", user, host); + nicklist_set_host(chanrec, nickrec, str); + g_free(str); + } if (nickrec->realname == NULL) nickrec->realname = g_strdup(realname); sscanf(hops, "%d", &nickrec->hops); -- cgit v1.2.3