summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-02-18 13:35:06 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-02-18 13:35:06 +0000
commit484274d65f27d21e8da1823f36fefd67e8bed67b (patch)
treef9db3a528e762c0fe0197e61a6cd0a36b2722dcb /src
parent4f81254e40e7c3ba9f090fa61138947799b66ad6 (diff)
downloadweechat-484274d65f27d21e8da1823f36fefd67e8bed67b.zip
Plugin messages handlers now called when message is ignored; new behaviour for
messages ignored by a message handler: now WeeChat executes standard handler, treating message as "ignored"
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc-recv.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index eeb6c7454..1558935ad 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -227,16 +227,13 @@ irc_recv_command (t_irc_server *server, char *entire_line,
{
command_ignored = ignore_check (host, irc_commands[i].command_name, NULL, server->name);
#ifdef PLUGINS
- if (!command_ignored)
- {
- return_code = plugin_msg_handler_exec (server->name,
- irc_commands[i].command_name,
- entire_line);
- /* plugin handler choosed to discard message for WeeChat,
- so we don't execute WeeChat standard handler for IRC message! */
- if (return_code & PLUGIN_RC_OK_IGNORE_WEECHAT)
- return 0;
- }
+ return_code = plugin_msg_handler_exec (server->name,
+ irc_commands[i].command_name,
+ entire_line);
+ /* plugin handler choosed to discard message for WeeChat,
+ so we ignore this message in standard handler */
+ if (return_code & PLUGIN_RC_OK_IGNORE_WEECHAT)
+ command_ignored = 1;
#else
/* make gcc happy */
(void) entire_line;