summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-02-16 23:28:53 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-02-16 23:28:53 +0000
commit0eb386ecd88140863c6377ef18764844103b68d9 (patch)
treeca109e2b94b304495408e6bacdbe189ec3289f9f /src/core
parenta0400dc3d23c01655b15a4486f8bd5b3c97b75cc (diff)
downloadirssi-0eb386ecd88140863c6377ef18764844103b68d9.zip
Move output recoding in irc_send_cmd_full.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4715 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/chat-commands.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/chat-commands.c b/src/core/chat-commands.c
index 705ccb6b..3b8b5df8 100644
--- a/src/core/chat-commands.c
+++ b/src/core/chat-commands.c
@@ -24,7 +24,6 @@
#include "commands.h"
#include "special-vars.h"
#include "settings.h"
-#include "recode.h"
#include "chat-protocols.h"
#include "servers.h"
@@ -350,7 +349,7 @@ static void cmd_join(const char *data, SERVER_REC *server)
static void cmd_msg(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
{
GHashTable *optlist;
- char *target, *origtarget, *msg, *recoded;
+ char *target, *origtarget, *msg;
void *free_arg;
int free_ret, target_type = SEND_TARGET_NICK;
@@ -402,16 +401,14 @@ static void cmd_msg(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
SEND_TARGET_CHANNEL : SEND_TARGET_NICK;
}
}
- recoded = recode_out(server, msg, target);
if (target != NULL) {
- signal_emit("server sendmsg", 4, server, target, recoded,
+ signal_emit("server sendmsg", 4, server, target, msg,
GINT_TO_POINTER(target_type));
}
signal_emit(target != NULL && target_type == SEND_TARGET_CHANNEL ?
"message own_public" : "message own_private", 4,
- server, recoded, target, origtarget);
+ server, msg, target, origtarget);
- g_free(recoded);
if (free_ret && target != NULL) g_free(target);
cmd_params_free(free_arg);
}