diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-12-02 16:13:15 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-12-02 16:13:15 +0000 |
commit | a065f97f877debe00a600e402478d0a4f419a2af (patch) | |
tree | 2d3fe06d189384a87683c1d08b10e66ce67fa187 /src | |
parent | 9459ac81271d7554b9cbeb134b256749c48815bb (diff) | |
download | irssi-a065f97f877debe00a600e402478d0a4f419a2af.zip |
Recode outgoing irc quit messages.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4940 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc-servers.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index c1b74274..ebfac1e8 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -336,14 +336,17 @@ static void sig_disconnected(IRC_SERVER_REC *server) static void sig_server_quit(IRC_SERVER_REC *server, const char *msg) { char *str; + char *recoded; if (!IS_IRC_SERVER(server) || server->handle == NULL || server->handle->readbuffer == NULL) return; - str = g_strdup_printf("QUIT :%s", msg); + recoded = recode_out(SERVER(server), msg, NULL); + str = g_strdup_printf("QUIT :%s", recoded); irc_send_cmd_now(server, str); g_free(str); + g_free(recoded); } void irc_server_send_action(IRC_SERVER_REC *server, const char *target, const char *data) |