summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-12-02 16:13:15 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-12-02 16:13:15 +0000
commita065f97f877debe00a600e402478d0a4f419a2af (patch)
tree2d3fe06d189384a87683c1d08b10e66ce67fa187 /src
parent9459ac81271d7554b9cbeb134b256749c48815bb (diff)
downloadirssi-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.c5
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)