diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-11-09 23:53:40 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-11-09 23:53:40 +0000 |
commit | 1b27be4abc46d882f05dfe622925444a6b394710 (patch) | |
tree | fbfef4ddcb120c75720e5a5a0941954335079124 /src/fe-common/irc/dcc | |
parent | 9003a61629acc7f6bca49584e16ad50a5fa2ea7c (diff) | |
download | irssi-1b27be4abc46d882f05dfe622925444a6b394710.zip |
Emit message irc own_{action,notice,wall} and message dcc own{,_action} with
message in client encoding.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4891 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc')
-rw-r--r-- | src/fe-common/irc/dcc/fe-dcc-chat-messages.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc-chat-messages.c b/src/fe-common/irc/dcc/fe-dcc-chat-messages.c index 6a5acdff..23ccc943 100644 --- a/src/fe-common/irc/dcc/fe-dcc-chat-messages.c +++ b/src/fe-common/irc/dcc/fe-dcc-chat-messages.c @@ -21,7 +21,6 @@ #include "module.h" #include "signals.h" #include "levels.h" -#include "recode.h" #include "irc-servers.h" #include "irc-queries.h" @@ -34,7 +33,7 @@ static void sig_message_dcc_own(CHAT_DCC_REC *dcc, const char *msg) { TEXT_DEST_REC dest; QUERY_REC *query; - char *tag, *recoded; + char *tag; tag = g_strconcat("=", dcc->id, NULL); query = query_find(NULL, tag); @@ -43,11 +42,8 @@ static void sig_message_dcc_own(CHAT_DCC_REC *dcc, const char *msg) MSGLEVEL_DCCMSGS | MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT, NULL); - /* ugly: recode the sent message back for printing */ - recoded = recode_in(SERVER(dcc->server), msg, dcc->target == NULL ? dcc->mynick : dcc->target); printformat_dest(&dest, query != NULL ? IRCTXT_OWN_DCC_QUERY : - IRCTXT_OWN_DCC, dcc->mynick, dcc->id, recoded); - g_free(recoded); + IRCTXT_OWN_DCC, dcc->mynick, dcc->id, msg); g_free(tag); } @@ -55,7 +51,7 @@ static void sig_message_dcc_own_action(CHAT_DCC_REC *dcc, const char *msg) { TEXT_DEST_REC dest; QUERY_REC *query; - char *tag, *recoded; + char *tag; tag = g_strconcat("=", dcc->id, NULL); query = query_find(NULL, tag); @@ -64,11 +60,8 @@ static void sig_message_dcc_own_action(CHAT_DCC_REC *dcc, const char *msg) MSGLEVEL_DCCMSGS | MSGLEVEL_ACTIONS | MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT, NULL); - /* ugly: recode the sent message back for printing */ - recoded = recode_in(SERVER(dcc->server), msg, dcc->target == NULL ? dcc->mynick : dcc->target); printformat_dest(&dest, query != NULL ? IRCTXT_OWN_DCC_ACTION_QUERY : - IRCTXT_OWN_DCC_ACTION, dcc->mynick, dcc->id, recoded); - g_free(recoded); + IRCTXT_OWN_DCC_ACTION, dcc->mynick, dcc->id, msg); g_free(tag); } |