summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-02-05 22:18:33 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-02-05 22:18:33 +0000
commit8e436c58cd2d2d914b93521263007d31e171ec18 (patch)
tree4241dd53994121d8cf029e89cd60d43aaa876128 /doc
parent4713f94602236a6c534d55e81a093e72f3e6c47f (diff)
downloadweechat-8e436c58cd2d2d914b93521263007d31e171ec18.zip
Added event handler to plugin API
Diffstat (limited to 'doc')
-rw-r--r--doc/de/weechat.de.xml285
-rw-r--r--doc/en/weechat.en.xml282
-rw-r--r--doc/fr/weechat.fr.xml292
3 files changed, 855 insertions, 4 deletions
diff --git a/doc/de/weechat.de.xml b/doc/de/weechat.de.xml
index 470821124..37d1e1f74 100644
--- a/doc/de/weechat.de.xml
+++ b/doc/de/weechat.de.xml
@@ -2511,6 +2511,121 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</para>
</section>
+ <!-- TRANSLATION NEEDED -->
+ <section id="secAPI_event_handler_add">
+ <title>event_handler_add</title>
+
+ <para>
+ Prototype:
+ <command>
+ t_plugin_handler *event_handler_add (t_weechat_plugin
+ *plugin, char *event, t_plugin_handler_func *function,
+ char *handler_args, void *handler_pointer)
+ </command>
+ </para>
+ <para>
+ Add an event handler, called when an event happens.
+ </para>
+ <para>
+ Arguments:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>plugin</option>: pointer to plugin structure
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>event</option> : event, see table below:
+ <informaltable colsep="0" frame="none">
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Event</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>buffer_open</literal></entry>
+ <entry>a buffer was open</entry>
+ </row>
+ <row>
+ <entry><literal>buffer_close</literal></entry>
+ <entry>a buffer was closed</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>function</option>: function called
+ </para>
+ <para>
+ It uses following prototype:
+ <command>
+ int my_function (t_weechat_plugin *plugin,
+ int argc, char **argv,
+ char *handler_args, void *handler_pointer)
+ </command>
+ </para>
+ <para>
+ Argument argc is set to 1, argv[0] is number of buffer
+ open/closed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>handler_args</option>: arguments given to function
+ when called
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>handler_pointer</option>: pointer given to function
+ when called
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Return value: pointer to new event handler.
+ </para>
+ <para>
+ Note: function called has to return one of following values:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_KO</literal>: function failed
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_OK</literal>: function successfully
+ completed
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Example:
+<screen>
+int my_event (t_weechat_plugin *plugin, int argc, char **argv,
+ char *handler_args, void *handler_pointer)
+{
+ plugin->print (plugin, NULL, NULL, "my_event");
+ return PLUGIN_RC_OK;
+}
+...
+t_plugin_handler *event_handler;
+event_handler = plugin->event_handler_add (plugin, "buffer_open",
+ &amp;my_event);
+</screen>
+ </para>
+ </section>
+
<section id="secAPI_handler_remove">
<title>handler_remove</title>
@@ -2888,6 +3003,12 @@ plugin->exec_command (plugin, "freenode", "#weechat", "hello");
<entry>Name des Servers</entry>
</row>
<row>
+ <entry><literal>type</literal></entry>
+ <entry>
+ Puffertyp: 0=standard, 1=DCC, 2=raw IRC data
+ </entry>
+ </row>
+ <row>
<entry><literal>away</literal></entry>
<entry>Status des "away"-Flags</entry>
</row>
@@ -4270,7 +4391,7 @@ else
<row>
<entry>int</entry>
<entry><literal>type</literal></entry>
- <entry>Puffertyp: 0=standard, 1=dcc, 2=raw IRC data</entry>
+ <entry>Puffertyp: 0=standard, 1=DCC, 2=raw IRC data</entry>
</row>
<row>
<entry>int</entry>
@@ -5664,6 +5785,106 @@ end
</para>
</section>
+ <!-- TRANSLATION NEEDED -->
+ <section id="secScript_add_event_handler">
+ <title>add_event_handler</title>
+
+ <para>
+ Perl prototype:
+ <command>
+ weechat::add_event_handler(event, function);
+ </command>
+ </para>
+ <para>
+ Python prototype:
+ <command>
+ weechat.add_event_handler(event, function)
+ </command>
+ </para>
+ <para>
+ Ruby prototype:
+ <command>
+ Weechat.add_event_handler(event, function)
+ </command>
+ </para>
+ <para>
+ Lua prototype:
+ <command>
+ weechat.add_event_handler(event, function)
+ </command>
+ </para>
+ <para>
+ Add an event handler, called when an event happens.
+ </para>
+ <para>
+ Arguments:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>event</option> : event
+ (see <xref linkend="secAPI_event_handler_add" />)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>function</option>: function called
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Return value: 1 if success, 0 if an error occurred.
+ </para>
+ <para>
+ Examples:
+<screen>
+# perl
+weechat::add_event_handler("buffer_open", "my_event");
+sub my_event
+{
+ weechat::print("buffer open");
+ return weechat::PLUGIN_RC_OK;
+}
+
+# python
+weechat.add_event_handler("buffer_open", "my_event")
+def my_event():
+ weechat.prnt("buffer open")
+ return weechat.PLUGIN_RC_OK
+
+# ruby
+Weechat.add_event_handler("buffer_open", "my_event")
+def my_event()
+ Weechat.print("buffer open")
+ return Weechat::PLUGIN_RC_OK
+end
+
+-- lua
+weechat.add_event_handler("buffer_open", "my_event")
+function my_event()
+ weechat.print("buffer open")
+ return weechat.PLUGIN_RC_OK()
+end
+</screen>
+ </para>
+ <para>
+ Note: function called has to return one of following values:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_KO</literal>: function failed
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_OK</literal>: function successfully
+ completed
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </section>
+
<section id="secScript_remove_handler">
<title>remove_handler</title>
@@ -5852,6 +6073,68 @@ weechat.remove_keyboard_handler("my_keyboard")
</para>
</section>
+ <!-- TRANSLATION NEEDED -->
+ <section id="secScrip_remove_event_handler">
+ <title>remove_event_handler</title>
+
+ <para>
+ Perl prototype:
+ <command>
+ weechat::remove_event_handler(function);
+ </command>
+ </para>
+ <para>
+ Python prototype:
+ <command>
+ weechat.remove_event_handler(function)
+ </command>
+ </para>
+ <para>
+ Ruby prototype:
+ <command>
+ Weechat.remove_event_handler(function)
+ </command>
+ </para>
+ <para>
+ Lua prototype:
+ <command>
+ weechat.remove_event_handler(function)
+ </command>
+ </para>
+ <para>
+ Remove an event handler.
+ </para>
+ <para>
+ Arguments:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>function</option>: function
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Return value: 1 if success, 0 if an error occurred.
+ </para>
+ <para>
+ Examples:
+<screen>
+# perl
+weechat::remove_event_handler("my_event");
+
+# python
+weechat.remove_event_handler("my_event")
+
+# ruby
+Weechat.remove_event_handler("my_event")
+
+-- lua
+weechat.remove_event_handler("my_event")
+</screen>
+ </para>
+ </section>
+
<section id="secScript_add_modifier">
<title>add_modifier</title>
diff --git a/doc/en/weechat.en.xml b/doc/en/weechat.en.xml
index 34e164db0..cd7f5a6d1 100644
--- a/doc/en/weechat.en.xml
+++ b/doc/en/weechat.en.xml
@@ -2538,6 +2538,120 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</para>
</section>
+ <section id="secAPI_event_handler_add">
+ <title>event_handler_add</title>
+
+ <para>
+ Prototype:
+ <command>
+ t_plugin_handler *event_handler_add (t_weechat_plugin
+ *plugin, char *event, t_plugin_handler_func *function,
+ char *handler_args, void *handler_pointer)
+ </command>
+ </para>
+ <para>
+ Add an event handler, called when an event happens.
+ </para>
+ <para>
+ Arguments:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>plugin</option>: pointer to plugin structure
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>event</option> : event, see table below:
+ <informaltable colsep="0" frame="none">
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Event</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>buffer_open</literal></entry>
+ <entry>a buffer was open</entry>
+ </row>
+ <row>
+ <entry><literal>buffer_close</literal></entry>
+ <entry>a buffer was closed</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>function</option>: function called
+ </para>
+ <para>
+ It uses following prototype:
+ <command>
+ int my_function (t_weechat_plugin *plugin,
+ int argc, char **argv,
+ char *handler_args, void *handler_pointer)
+ </command>
+ </para>
+ <para>
+ Argument argc is set to 1, argv[0] is number of buffer
+ open/closed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>handler_args</option>: arguments given to function
+ when called
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>handler_pointer</option>: pointer given to function
+ when called
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Return value: pointer to new event handler.
+ </para>
+ <para>
+ Note: function called has to return one of following values:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_KO</literal>: function failed
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_OK</literal>: function successfully
+ completed
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Example:
+<screen>
+int my_event (t_weechat_plugin *plugin, int argc, char **argv,
+ char *handler_args, void *handler_pointer)
+{
+ plugin->print (plugin, NULL, NULL, "my_event");
+ return PLUGIN_RC_OK;
+}
+...
+t_plugin_handler *event_handler;
+event_handler = plugin->event_handler_add (plugin, "buffer_open",
+ &amp;my_event);
+</screen>
+ </para>
+ </section>
+
<section id="secAPI_handler_remove">
<title>handler_remove</title>
@@ -2918,6 +3032,12 @@ plugin->exec_command (plugin, "freenode", "#weechat", "hello");
<entry>name of server</entry>
</row>
<row>
+ <entry><literal>type</literal></entry>
+ <entry>
+ buffer type: 0=standard, 1=DCC, 2=raw IRC data
+ </entry>
+ </row>
+ <row>
<entry><literal>away</literal></entry>
<entry>"away" flag</entry>
</row>
@@ -4305,7 +4425,7 @@ else
<row>
<entry>int</entry>
<entry><literal>type</literal></entry>
- <entry>buffer type: 0=standard, 1=dcc, 2=raw IRC data</entry>
+ <entry>buffer type: 0=standard, 1=DCC, 2=raw IRC data</entry>
</row>
<row>
<entry>int</entry>
@@ -5703,6 +5823,105 @@ end
</para>
</section>
+ <section id="secScript_add_event_handler">
+ <title>add_event_handler</title>
+
+ <para>
+ Perl prototype:
+ <command>
+ weechat::add_event_handler(event, function);
+ </command>
+ </para>
+ <para>
+ Python prototype:
+ <command>
+ weechat.add_event_handler(event, function)
+ </command>
+ </para>
+ <para>
+ Ruby prototype:
+ <command>
+ Weechat.add_event_handler(event, function)
+ </command>
+ </para>
+ <para>
+ Lua prototype:
+ <command>
+ weechat.add_event_handler(event, function)
+ </command>
+ </para>
+ <para>
+ Add an event handler, called when an event happens.
+ </para>
+ <para>
+ Arguments:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>event</option> : event
+ (see <xref linkend="secAPI_event_handler_add" />)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>function</option>: function called
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Return value: 1 if success, 0 if an error occurred.
+ </para>
+ <para>
+ Examples:
+<screen>
+# perl
+weechat::add_event_handler("buffer_open", "my_event");
+sub my_event
+{
+ weechat::print("buffer open");
+ return weechat::PLUGIN_RC_OK;
+}
+
+# python
+weechat.add_event_handler("buffer_open", "my_event")
+def my_event():
+ weechat.prnt("buffer open")
+ return weechat.PLUGIN_RC_OK
+
+# ruby
+Weechat.add_event_handler("buffer_open", "my_event")
+def my_event()
+ Weechat.print("buffer open")
+ return Weechat::PLUGIN_RC_OK
+end
+
+-- lua
+weechat.add_event_handler("buffer_open", "my_event")
+function my_event()
+ weechat.print("buffer open")
+ return weechat.PLUGIN_RC_OK()
+end
+</screen>
+ </para>
+ <para>
+ Note: function called has to return one of following values:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_KO</literal>: function failed
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_OK</literal>: function successfully
+ completed
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </section>
+
<section id="secScript_remove_handler">
<title>remove_handler</title>
@@ -5891,6 +6110,67 @@ weechat.remove_keyboard_handler("my_keyboard")
</para>
</section>
+ <section id="secScrip_remove_event_handler">
+ <title>remove_event_handler</title>
+
+ <para>
+ Perl prototype:
+ <command>
+ weechat::remove_event_handler(function);
+ </command>
+ </para>
+ <para>
+ Python prototype:
+ <command>
+ weechat.remove_event_handler(function)
+ </command>
+ </para>
+ <para>
+ Ruby prototype:
+ <command>
+ Weechat.remove_event_handler(function)
+ </command>
+ </para>
+ <para>
+ Lua prototype:
+ <command>
+ weechat.remove_event_handler(function)
+ </command>
+ </para>
+ <para>
+ Remove an event handler.
+ </para>
+ <para>
+ Arguments:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>function</option>: function
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Return value: 1 if success, 0 if an error occurred.
+ </para>
+ <para>
+ Examples:
+<screen>
+# perl
+weechat::remove_event_handler("my_event");
+
+# python
+weechat.remove_event_handler("my_event")
+
+# ruby
+Weechat.remove_event_handler("my_event")
+
+-- lua
+weechat.remove_event_handler("my_event")
+</screen>
+ </para>
+ </section>
+
<section id="secScript_add_modifier">
<title>add_modifier</title>
diff --git a/doc/fr/weechat.fr.xml b/doc/fr/weechat.fr.xml
index 2588a059a..7c6190678 100644
--- a/doc/fr/weechat.fr.xml
+++ b/doc/fr/weechat.fr.xml
@@ -2596,7 +2596,125 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;mon_keyb);
</screen>
</para>
</section>
-
+
+ <section id="secAPI_event_handler_add">
+ <title>event_handler_add</title>
+
+ <para>
+ Prototype :
+ <command>
+ t_plugin_handler *event_handler_add (t_weechat_plugin
+ *plugin, char *evenement, t_plugin_handler_func *fonction,
+ char *handler_args, void *handler_pointer)
+ </command>
+ </para>
+ <para>
+ Ajoute un gestionnaire d'évènement, appelé dès qu'un évènement se
+ produit.
+ </para>
+ <para>
+ Paramètres :
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>plugin</option> : pointeur vers la structure
+ de l'extension
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>évènement</option> : évènement, voir le tableau
+ ci-dessous :
+ <informaltable colsep="0" frame="none">
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Evènement</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>buffer_open</literal></entry>
+ <entry>un tampon a été ouvert</entry>
+ </row>
+ <row>
+ <entry><literal>buffer_close</literal></entry>
+ <entry>un tampon a été fermé</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>fonction</option> : fonction appelée
+ </para>
+ <para>
+ Elle a le prototype suivant :
+ <command>
+ int ma_fonction (t_weechat_plugin *plugin,
+ int argc, char **argv,
+ char *handler_args, void *handler_pointer)
+ </command>
+ </para>
+ <para>
+ Le paramètre argc vaut 1 et argv[0] contient le numéro
+ du tampon ouvert ou fermé.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>handler_args</option> : paramètres passés à la
+ fonction appelée
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <option>handler_pointer</option> : pointeur passé à la
+ fonction appelée
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Valeur renvoyée : le pointeur vers le nouveau gestionnaire
+ d'évènement.
+ </para>
+ <para>
+ Note : la fonction appelée doit renvoyer une des valeurs
+ suivantes :
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_KO</literal> : la fonction a échoué
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_OK</literal> : la fonction a réussi
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Exemple :
+<screen>
+int mon_evenement (t_weechat_plugin *plugin, int argc, char **argv,
+ char *handler_args, void *handler_pointer)
+{
+ plugin->print (plugin, NULL, NULL, "mon_evenement");
+ return PLUGIN_RC_OK;
+}
+...
+t_plugin_handler *event_handler;
+event_handler = plugin->event_handler_add (plugin, "buffer_open",
+ &amp;mon_evenement);
+</screen>
+ </para>
+ </section>
+
<section id="secAPI_handler_remove">
<title>handler_remove</title>
@@ -2988,6 +3106,13 @@ plugin->exec_command (plugin, "freenode", "#weechat", "bonjour");
<entry>nom du serveur</entry>
</row>
<row>
+ <entry><literal>type</literal></entry>
+ <entry>
+ type de tampon: 0=standard, 1=DCC,
+ 2=données IRC brutes
+ </entry>
+ </row>
+ <row>
<entry><literal>away</literal></entry>
<entry>drapeau "away"</entry>
</row>
@@ -4408,7 +4533,7 @@ else
<entry>int</entry>
<entry><literal>type</literal></entry>
<entry>
- type de tampon: 0=standard, 1=dcc,
+ type de tampon: 0=standard, 1=DCC,
2=données IRC brutes
</entry>
</row>
@@ -5828,6 +5953,108 @@ end
</para>
</section>
+ <section id="secScript_add_event_handler">
+ <title>add_event_handler</title>
+
+ <para>
+ Prototype Perl :
+ <command>
+ weechat::add_event_handler(évènement, fonction);
+ </command>
+ </para>
+ <para>
+ Prototype Python :
+ <command>
+ weechat.add_event_handler(évènement, fonction)
+ </command>
+ </para>
+ <para>
+ Prototype Ruby :
+ <command>
+ Weechat.add_event_handler(évènement, fonction)
+ </command>
+ </para>
+ <para>
+ Prototype Lua :
+ <command>
+ weechat.add_event_handler(évènement, fonction)
+ </command>
+ </para>
+ <para>
+ Ajoute un gestionnaire d'évènement, appelé dès qu'un évènement se
+ produit.
+ </para>
+ <para>
+ Paramètres :
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>évènement</option> : évènement
+ (voir <xref linkend="secAPI_event_handler_add" />)
+ </para>
+ </listitem>
+ </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>fonction</option> : fonction appelée
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Valeur renvoyée : 1 si succès, 0 si une erreur s'est produite.
+ </para>
+ <para>
+ Exemples :
+<screen>
+# perl
+weechat::add_event_handler("buffer_open", "mon_evenement");
+sub mon_evenement
+{
+ weechat::print("buffer open");
+ return weechat::PLUGIN_RC_OK;
+}
+
+# python
+weechat.add_event_handler("buffer_open", "mon_evenement")
+def mon_evenement():
+ weechat.prnt("buffer open")
+ return weechat.PLUGIN_RC_OK
+
+# ruby
+Weechat.add_event_handler("buffer_open", "mon_evenement")
+def mon_evenement()
+ Weechat.print("buffer open")
+ return Weechat::PLUGIN_RC_OK
+end
+
+-- lua
+weechat.add_event_handler("buffer_open", "mon_evenement")
+function mon_evenement()
+ weechat.print("buffer open")
+ return weechat.PLUGIN_RC_OK()
+end
+</screen>
+ </para>
+ <para>
+ Note : la fonction appelée doit renvoyer une des valeurs
+ suivantes :
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_KO</literal> : la fonction a échoué
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>PLUGIN_RC_OK</literal> : la fonction a réussi
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </section>
+
<section id="secScript_remove_handler">
<title>remove_handler</title>
@@ -6016,6 +6243,67 @@ weechat.remove_keyboard_handler("mon_clavier")
</para>
</section>
+ <section id="secScript_remove_event_handler">
+ <title>remove_event_handler</title>
+
+ <para>
+ Prototype Perl :
+ <command>
+ weechat::remove_event_handler(fonction);
+ </command>
+ </para>
+ <para>
+ Prototype Python :
+ <command>
+ weechat.remove_event_handler(fonction)
+ </command>
+ </para>
+ <para>
+ Prototype Ruby :
+ <command>
+ Weechat.remove_event_handler(fonction)
+ </command>
+ </para>
+ <para>
+ Prototype Lua :
+ <command>
+ weechat.remove_event_handler(fonction)
+ </command>
+ </para>
+ <para>
+ Supprime un gestionnaire d'évènement.
+ </para>
+ <para>
+ Paramètres :
+ <itemizedlist>
+ <listitem>
+ <para>
+ <option>fonction</option> : fonction
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Valeur renvoyée : 1 si succès, 0 si une erreur s'est produite.
+ </para>
+ <para>
+ Exemples :
+<screen>
+# perl
+weechat::remove_event_handler("mon_evenement");
+
+# python
+weechat.remove_event_handler("mon_evenement")
+
+# ruby
+Weechat.remove_event_handler("mon_evenement")
+
+-- lua
+weechat.remove_event_handler("mon_evenement")
+</screen>
+ </para>
+ </section>
+
<section id="secScript_add_modifier">
<title>add_modifier</title>