diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-11-09 23:33:24 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-11-09 23:33:24 +0000 |
commit | 9003a61629acc7f6bca49584e16ad50a5fa2ea7c (patch) | |
tree | 7b39b54f255c46a72cebb92f64c53e363d22252c /src/irc/core | |
parent | 9ce4352e1dd29af10e5c7417d81defbd945e56cd (diff) | |
download | irssi-9003a61629acc7f6bca49584e16ad50a5fa2ea7c.zip |
Move recoding of outgoing messages into irc send_message routine. Handlers for
message own_{private,public} now receive the message in the client encoding.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4890 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core')
-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 99574c57..9055bb4a 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -79,6 +79,7 @@ static void send_message(SERVER_REC *server, const char *target, IRC_SERVER_REC *ircserver; CHANNEL_REC *channel; char *str; + char *recoded; ircserver = IRC_SERVER(server); g_return_if_fail(ircserver != NULL); @@ -92,9 +93,11 @@ static void send_message(SERVER_REC *server, const char *target, target = channel->name; } - str = g_strdup_printf("PRIVMSG %s :%s", target, msg); + recoded = recode_out(SERVER(server), msg, target); + str = g_strdup_printf("PRIVMSG %s :%s", target, recoded); irc_send_cmd_split(ircserver, str, 2, ircserver->max_msgs_in_cmd); g_free(str); + g_free(recoded); } static void server_init(IRC_SERVER_REC *server) |