1780 |
@* |
@* |
1781 |
|
|
1782 |
@item |
@item |
1783 |
@command{t_plugin_msg_handler *msg_handler_add (t_weechat_plugin |
@command{t_plugin_handler *msg_handler_add (t_weechat_plugin |
1784 |
*plugin, char *message, t_plugin_handler_func *handler_func, |
*plugin, char *message, t_plugin_handler_func *handler_func, |
1785 |
char *handler_args, void *handler_pointer)}@* |
char *handler_args, void *handler_pointer)}@* |
1786 |
@* |
@* |
1812 |
@* |
@* |
1813 |
|
|
1814 |
@item |
@item |
1815 |
@command{void msg_handler_remove (t_weechat_plugin *plugin, |
@command{t_plugin_handler *cmd_handler_add (t_weechat_plugin |
|
t_plugin_msg_handler *msg_handler)}@* |
|
|
@* |
|
|
Remove an IRC message handler.@* |
|
|
|
|
|
@emph{Param@`etres :} |
|
|
@itemize @minus |
|
|
@item @option{plugin}: pointer to plugin structure |
|
|
@item @option{msg_handler}: handler to remove |
|
|
@end itemize |
|
|
@* |
|
|
@emph{Return value:}@* |
|
|
@* |
|
|
None.@* |
|
|
@* |
|
|
@emph{Example:}@* |
|
|
@* |
|
|
@code{plugin->msg_handler_remove (plugin, my_msg_handler);}@* |
|
|
@* |
|
|
|
|
|
@item |
|
|
@command{void msg_handler_remove_all (t_weechat_plugin *plugin)}@* |
|
|
@* |
|
|
Remove all IRC message handlers for a plugin.@* |
|
|
|
|
|
@emph{Arguments:} |
|
|
@itemize @minus |
|
|
@item @option{plugin}: pointer to plugin structure |
|
|
@end itemize |
|
|
@* |
|
|
@emph{Return value:}@* |
|
|
@* |
|
|
None.@* |
|
|
@* |
|
|
@emph{Example:}@* |
|
|
@* |
|
|
@code{plugin->msg_handler_remove_all (plugin);}@* |
|
|
@* |
|
|
|
|
|
@item |
|
|
@command{t_plugin_cmd_handler *cmd_handler_add (t_weechat_plugin |
|
1816 |
*plugin, char *command, char *description, char *arguments, |
*plugin, char *command, char *description, char *arguments, |
1817 |
char *arguments_description, t_plugin_handler_func *handler_func, |
char *arguments_description, t_plugin_handler_func *handler_func, |
1818 |
char *handler_args, void *handler_pointer)}@* |
char *handler_args, void *handler_pointer)}@* |
1854 |
@* |
@* |
1855 |
|
|
1856 |
@item |
@item |
1857 |
@command{void cmd_handler_remove (t_weechat_plugin *plugin, |
@command{void handler_remove (t_weechat_plugin *plugin, |
1858 |
t_plugin_cmd_handler *cmd_handler)}@* |
t_plugin_handler *handler)}@* |
1859 |
@* |
@* |
1860 |
Remove a command handler.@* |
Remove a handler.@* |
1861 |
|
|
1862 |
@emph{Arguments:} |
@emph{Arguments:} |
1863 |
@itemize @minus |
@itemize @minus |
1864 |
@item @option{plugin}: pointer to plugin structure |
@item @option{plugin}: pointer to plugin structure |
1865 |
@item @option{cmd_handler}: command handler to remove |
@item @option{handler}: handler to remove |
1866 |
@end itemize |
@end itemize |
1867 |
@* |
@* |
1868 |
@emph{Return value:}@* |
@emph{Return value:}@* |
1871 |
@* |
@* |
1872 |
@emph{Example:}@* |
@emph{Example:}@* |
1873 |
@* |
@* |
1874 |
@code{plugin->cmd_handler_remove (plugin, my_cmd_handler);}@* |
@code{plugin->handler_remove (plugin, my_handler);}@* |
1875 |
@* |
@* |
1876 |
|
|
1877 |
@item |
@item |
1878 |
@command{void cmd_handler_remove_all (t_weechat_plugin *plugin)}@* |
@command{void handler_remove_all (t_weechat_plugin *plugin)}@* |
1879 |
@* |
@* |
1880 |
Remove all command handlers for a plugin.@* |
Remove all handlers for a plugin.@* |
1881 |
|
|
1882 |
@emph{Arguments:} |
@emph{Arguments:} |
1883 |
@itemize @minus |
@itemize @minus |
1890 |
@* |
@* |
1891 |
@emph{Example :}@* |
@emph{Example :}@* |
1892 |
@* |
@* |
1893 |
@code{plugin->cmd_handler_remove_all (plugin);}@* |
@code{plugin->handler_remove_all (plugin);}@* |
1894 |
@* |
@* |
1895 |
|
|
1896 |
@item |
@item |