summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorValentin Batz <senneth@irssi.org>2005-08-04 08:41:33 +0000
committervb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-08-04 08:41:33 +0000
commita65e346f83171f9c7777c17f5d976a10609d8d11 (patch)
tree98c8503c572be6dc087d320251dbc39b031dda26 /src/fe-common
parent6d42a00287ff144c5c597b5da158961e0c22847d (diff)
downloadirssi-a65e346f83171f9c7777c17f5d976a10609d8d11.zip
Fixed recode for incoming messages, private messages didn't work properly. (Bug http://bugs.irssi.org/?do=details&id=286)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3896 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/irc/fe-events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index 2a2433d1..251779d6 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -52,13 +52,14 @@ static void event_privmsg(IRC_SERVER_REC *server, const char *data,
params = event_get_params(data, 2 | PARAM_FLAG_GETREST, &target, &msg);
if (nick == NULL) nick = server->real_address;
if (addr == NULL) addr = "";
- recoded = recode_in(SERVER(server), msg, target);
if (*target == '@' && ischannel(target[1])) {
/* Hybrid 6 feature, send msg to all ops in channel */
+ recoded = recode_in(SERVER(server), msg, target+1);
signal_emit("message irc op_public", 5,
server, recoded, nick, addr,
get_visible_target(server, target+1));
} else {
+ recoded = recode_in(SERVER(server), msg, ischannel(*target) ? target : nick);
signal_emit(ischannel(*target) ?
"message public" : "message private", 5,
server, recoded, nick, addr,