From 9ce4352e1dd29af10e5c7417d81defbd945e56cd Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 9 Nov 2008 23:06:37 +0000 Subject: Move recoding of incoming quit messages to irc 'event quit' handler. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4889 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-events.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fe-common/irc') diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c index f5d03cf5..f834f8af 100644 --- a/src/fe-common/irc/fe-events.c +++ b/src/fe-common/irc/fe-events.c @@ -140,10 +140,14 @@ static void event_part(IRC_SERVER_REC *server, const char *data, static void event_quit(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr) { + char *recoded; + g_return_if_fail(data != NULL); if (*data == ':') data++; /* quit message */ - signal_emit("message quit", 4, server, nick, addr, data); + recoded = recode_in(SERVER(server), data, nick); + signal_emit("message quit", 4, server, nick, addr, recoded); + g_free(recoded); } static void event_kick(IRC_SERVER_REC *server, const char *data, -- cgit v1.2.3