diff options
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); } |