diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2007-08-03 17:24:25 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-08-03 17:24:25 +0000 |
commit | 5a639efef38a7a38bc5501c958a40b6c028b19e8 (patch) | |
tree | 99610f97407da311c68787910fba11c18d036fc8 /src/fe-common/irc/fe-irc-commands.c | |
parent | 21dee7014137dd5f83954b00e374ca626849b7c1 (diff) | |
download | irssi-5a639efef38a7a38bc5501c958a40b6c028b19e8.zip |
- Make notices to +#channel (and all other STATUSMSG=)
appear in the channel window.
- Make actions and ctcp to @#channel etc appear in the
channel window.
- Clean up the code a little.
This fixes bug #46 apart from incoming msg to +#channel.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4589 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-irc-commands.c')
-rw-r--r-- | src/fe-common/irc/fe-irc-commands.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 4c2a0e14..9172c677 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -41,19 +41,6 @@ #include "printtext.h" #include "keyboard.h" -static const char *skip_target(const char *target) -{ - if (*target == '@') { - /* @#channel, @+#channel - Hybrid6 / Bahamut features */ - if (target[1] == '+' && ischannel(target[2])) - target += 2; - else if (ischannel(target[1])) - target++; - } - - return target; -} - /* SYNTAX: ME <message> */ static void cmd_me(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) { @@ -103,7 +90,6 @@ static void cmd_action(const char *data, IRC_SERVER_REC *server) recoded = recode_out(SERVER(server), text, target); irc_send_cmdv(server, "PRIVMSG %s :\001ACTION %s\001", target, recoded); - target = skip_target(target); signal_emit("message irc own_action", 3, server, recoded, target); g_free(recoded); @@ -158,8 +144,6 @@ static void cmd_ctcp(const char *data, IRC_SERVER_REC *server, return; } - target = skip_target(target); - g_strup(ctcpcmd); signal_emit("message irc own_ctcp", 4, server, ctcpcmd, ctcpdata, target); @@ -183,7 +167,6 @@ static void cmd_nctcp(const char *data, IRC_SERVER_REC *server, if (*target == '\0' || *text == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); - target = skip_target(target); signal_emit("message irc own_notice", 3, server, text, target); cmd_params_free(free_arg); } |