1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

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"
This commit is contained in:
Sebastien Helleu
2006-02-18 13:35:06 +00:00
parent 4f81254e40
commit 484274d65f
4 changed files with 22 additions and 22 deletions
+7 -10
View File
@@ -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;