summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-11-09 19:37:25 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-11-09 19:37:25 +0000
commitc647f8b2066e757008a18c41274070ee3cd7f1f7 (patch)
tree100dd1880c491a1c361fb0c07158ad3b77950c00 /src/fe-common/irc
parent110f94ceb64fa2654a615d9a5e5a5273b662c45c (diff)
downloadirssi-c647f8b2066e757008a18c41274070ee3cd7f1f7.zip
Revert part of r4041. It is not clear which bug it is supposed to fix, and the
change seems wrong anyway because notice/action message is already recoded in fe-events.c:event_notice/ctcp_action. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4888 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-irc-messages.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c
index 06159582..4b2301c3 100644
--- a/src/fe-common/irc/fe-irc-messages.c
+++ b/src/fe-common/irc/fe-irc-messages.c
@@ -167,7 +167,7 @@ static void sig_message_irc_action(IRC_SERVER_REC *server, const char *msg,
{
void *item;
const char *oldtarget;
- char *freemsg = NULL, *recoded;
+ char *freemsg = NULL;
int level;
oldtarget = target;
@@ -187,28 +187,26 @@ static void sig_message_irc_action(IRC_SERVER_REC *server, const char *msg,
if (settings_get_bool("emphasis"))
msg = freemsg = expand_emphasis(item, msg);
- recoded = recode_in(SERVER(server), msg, target);
if (ischannel(*target)) {
/* channel action */
if (window_item_is_active(item) && target == oldtarget) {
/* message to active channel in window */
printformat(server, target, level,
- IRCTXT_ACTION_PUBLIC, nick, recoded);
+ IRCTXT_ACTION_PUBLIC, nick, msg);
} else {
/* message to not existing/active channel, or to @/+ */
printformat(server, target, level,
IRCTXT_ACTION_PUBLIC_CHANNEL,
- nick, oldtarget, recoded);
+ nick, oldtarget, msg);
}
} else {
/* private action */
printformat(server, nick, MSGLEVEL_ACTIONS | MSGLEVEL_MSGS,
item == NULL ? IRCTXT_ACTION_PRIVATE :
IRCTXT_ACTION_PRIVATE_QUERY,
- nick, address == NULL ? "" : address, recoded);
+ nick, address == NULL ? "" : address, msg);
}
- g_free(recoded);
g_free_not_null(freemsg);
}
@@ -228,20 +226,17 @@ static void sig_message_irc_notice(SERVER_REC *server, const char *msg,
const char *target)
{
const char *oldtarget;
- char *recoded;
oldtarget = target;
target = skip_target(IRC_SERVER(server), target);
if (address == NULL || *address == '\0') {
/* notice from server */
- recoded = recode_in(SERVER(server), msg, NULL);
if (!ignore_check(server, nick, "",
target, msg, MSGLEVEL_SNOTES)) {
printformat(server, target, MSGLEVEL_SNOTES,
- IRCTXT_NOTICE_SERVER, nick, recoded);
+ IRCTXT_NOTICE_SERVER, nick, msg);
}
- g_free(recoded);
return;
}
@@ -250,19 +245,17 @@ static void sig_message_irc_notice(SERVER_REC *server, const char *msg,
msg, MSGLEVEL_NOTICES))
return;
- recoded = recode_in(SERVER(server), msg, target);
if (ischannel(*target)) {
/* notice in some channel */
printformat(server, target, MSGLEVEL_NOTICES,
- IRCTXT_NOTICE_PUBLIC, nick, oldtarget, recoded);
+ IRCTXT_NOTICE_PUBLIC, nick, oldtarget, msg);
} else {
/* private notice */
privmsg_get_query(SERVER(server), nick, FALSE,
MSGLEVEL_NOTICES);
printformat(server, nick, MSGLEVEL_NOTICES,
- IRCTXT_NOTICE_PRIVATE, nick, address, recoded);
+ IRCTXT_NOTICE_PRIVATE, nick, address, msg);
}
- g_free(recoded);
}
static void sig_message_own_ctcp(IRC_SERVER_REC *server, const char *cmd,