1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Plugins: "add_message_handler" now accepts "*" for all IRC messages

This commit is contained in:
Sebastien Helleu
2006-12-01 16:14:08 +00:00
parent 3ba99d6d71
commit d1d41da7ad
10 changed files with 20 additions and 10 deletions
+3 -1
View File
@@ -472,7 +472,9 @@ plugin_msg_handler_exec (char *server, char *irc_command, char *irc_message)
ptr_handler; ptr_handler = ptr_handler->next_handler)
{
if ((ptr_handler->type == PLUGIN_HANDLER_MESSAGE)
&& (ascii_strcasecmp (ptr_handler->irc_command, irc_command) == 0))
&& (((ascii_strcasecmp (ptr_handler->irc_command, "*") == 0)
&& (ascii_strncasecmp (irc_command, "weechat_", 8) != 0))
|| (ascii_strcasecmp (ptr_handler->irc_command, irc_command) == 0)))
{
if (ptr_handler->running == 0)
{