summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--doc/de/weechat.de.xml3
-rw-r--r--doc/en/weechat.en.xml3
-rw-r--r--doc/fr/weechat.fr.xml2
-rw-r--r--src/plugins/plugins.c4
-rw-r--r--weechat/ChangeLog3
-rw-r--r--weechat/doc/de/weechat.de.xml3
-rw-r--r--weechat/doc/en/weechat.en.xml3
-rw-r--r--weechat/doc/fr/weechat.fr.xml2
-rw-r--r--weechat/src/plugins/plugins.c4
10 files changed, 20 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 86a22326e..bc2023f07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/doc/de/weechat.de.xml b/doc/de/weechat.de.xml
index cb0d1f3bc..09972a9b0 100644
--- a/doc/de/weechat.de.xml
+++ b/doc/de/weechat.de.xml
@@ -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
diff --git a/doc/en/weechat.en.xml b/doc/en/weechat.en.xml
index 79b335e31..aa62d8df6 100644
--- a/doc/en/weechat.en.xml
+++ b/doc/en/weechat.en.xml
@@ -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
diff --git a/doc/fr/weechat.fr.xml b/doc/fr/weechat.fr.xml
index c89cc2783..50f55f7e5 100644
--- a/doc/fr/weechat.fr.xml
+++ b/doc/fr/weechat.fr.xml
@@ -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
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index 2932f10c2..4d9970384 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -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)
{
diff --git a/weechat/ChangeLog b/weechat/ChangeLog
index 86a22326e..bc2023f07 100644
--- a/weechat/ChangeLog
+++ b/weechat/ChangeLog
@@ -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
diff --git a/weechat/doc/de/weechat.de.xml b/weechat/doc/de/weechat.de.xml
index cb0d1f3bc..09972a9b0 100644
--- a/weechat/doc/de/weechat.de.xml
+++ b/weechat/doc/de/weechat.de.xml
@@ -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
diff --git a/weechat/doc/en/weechat.en.xml b/weechat/doc/en/weechat.en.xml
index 79b335e31..aa62d8df6 100644
--- a/weechat/doc/en/weechat.en.xml
+++ b/weechat/doc/en/weechat.en.xml
@@ -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
diff --git a/weechat/doc/fr/weechat.fr.xml b/weechat/doc/fr/weechat.fr.xml
index c89cc2783..50f55f7e5 100644
--- a/weechat/doc/fr/weechat.fr.xml
+++ b/weechat/doc/fr/weechat.fr.xml
@@ -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
diff --git a/weechat/src/plugins/plugins.c b/weechat/src/plugins/plugins.c
index 2932f10c2..4d9970384 100644
--- a/weechat/src/plugins/plugins.c
+++ b/weechat/src/plugins/plugins.c
@@ -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)
{