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

View File

@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-11-29
ChangeLog - 2006-12-01
Version 0.2.2 (under dev!):
* plugins: "add_message_handler" now accepts "*" for all IRC messages
* added keys (F9/F10) to scroll topic (task #6030)
* added auto completion with channels and filenames (task #5423)
* fixed memleak in keyboard input

View File

@ -1936,7 +1936,8 @@ plugin->log (plugin, "freenode", "#weechat", "test");
</listitem>
<listitem>
<para>
<option>message</option>: Name (Typ) der IRC-Nachricht.
<option>message</option>: Name (Typ) der IRC-Nachricht ("*" für alle
Nachrichten).
Eine Liste der bekannten IRC-Nachrichten ist in den
<acronym>RFC</acronym>s
<ulink url="http://www.ietf.org/rfc/rfc1459.txt">1459</ulink> und

View File

@ -1937,7 +1937,8 @@ plugin->log (plugin, "freenode", "#weechat", "test");
</listitem>
<listitem>
<para>
<option>message</option>: name of IRC message.
<option>message</option>: name of IRC message ("*" for all
messages).
To know list of IRC messages, please consult
<acronym>RFC</acronym>s
<ulink url="http://www.ietf.org/rfc/rfc1459.txt">1459</ulink> and

View File

@ -1982,7 +1982,7 @@ plugin->log (plugin, "freenode", "#weechat", "test");
<listitem>
<para>
<option>message</option> : nom du message IRC pour lequel la
fonction est appelée.
fonction est appelée ("*" pour tous les messages).
Pour connaître la liste des messages IRC disponibles, merci
de consulter les <acronym>RFC</acronym>s
<ulink url="http://www.ietf.org/rfc/rfc1459.txt">1459</ulink> et

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)
{

View File

@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-11-29
ChangeLog - 2006-12-01
Version 0.2.2 (under dev!):
* plugins: "add_message_handler" now accepts "*" for all IRC messages
* added keys (F9/F10) to scroll topic (task #6030)
* added auto completion with channels and filenames (task #5423)
* fixed memleak in keyboard input

View File

@ -1936,7 +1936,8 @@ plugin->log (plugin, "freenode", "#weechat", "test");
</listitem>
<listitem>
<para>
<option>message</option>: Name (Typ) der IRC-Nachricht.
<option>message</option>: Name (Typ) der IRC-Nachricht ("*" für alle
Nachrichten).
Eine Liste der bekannten IRC-Nachrichten ist in den
<acronym>RFC</acronym>s
<ulink url="http://www.ietf.org/rfc/rfc1459.txt">1459</ulink> und

View File

@ -1937,7 +1937,8 @@ plugin->log (plugin, "freenode", "#weechat", "test");
</listitem>
<listitem>
<para>
<option>message</option>: name of IRC message.
<option>message</option>: name of IRC message ("*" for all
messages).
To know list of IRC messages, please consult
<acronym>RFC</acronym>s
<ulink url="http://www.ietf.org/rfc/rfc1459.txt">1459</ulink> and

View File

@ -1982,7 +1982,7 @@ plugin->log (plugin, "freenode", "#weechat", "test");
<listitem>
<para>
<option>message</option> : nom du message IRC pour lequel la
fonction est appelée.
fonction est appelée ("*" pour tous les messages).
Pour connaître la liste des messages IRC disponibles, merci
de consulter les <acronym>RFC</acronym>s
<ulink url="http://www.ietf.org/rfc/rfc1459.txt">1459</ulink> et

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)
{