diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-11-09 23:06:37 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-11-09 23:06:37 +0000 |
commit | 9ce4352e1dd29af10e5c7417d81defbd945e56cd (patch) | |
tree | 875dc414221dadf4577c36ed9a010fcd9fde7e28 /src/fe-common/irc | |
parent | c647f8b2066e757008a18c41274070ee3cd7f1f7 (diff) | |
download | irssi-9ce4352e1dd29af10e5c7417d81defbd945e56cd.zip |
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
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r-- | src/fe-common/irc/fe-events.c | 6 |
1 files changed, 5 insertions, 1 deletions
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, |