1783 |
@* |
@* |
1784 |
|
|
1785 |
@item |
@item |
1786 |
@command{t_plugin_msg_handler *msg_handler_add (t_weechat_plugin |
@command{t_plugin_handler *msg_handler_add (t_weechat_plugin |
1787 |
*plugin, char *message, t_plugin_handler_func *handler_func, |
*plugin, char *message, t_plugin_handler_func *handler_func, |
1788 |
char *handler_args, void *handler_pointer)}@* |
char *handler_args, void *handler_pointer)}@* |
1789 |
@* |
@* |
1815 |
@* |
@* |
1816 |
|
|
1817 |
@item |
@item |
1818 |
@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 |
|
1819 |
*plugin, char *command, char *description, char *arguments, |
*plugin, char *command, char *description, char *arguments, |
1820 |
char *arguments_description, t_plugin_handler_func *handler_func, |
char *arguments_description, t_plugin_handler_func *handler_func, |
1821 |
char *handler_args, void *handler_pointer)}@* |
char *handler_args, void *handler_pointer)}@* |
1857 |
@* |
@* |
1858 |
|
|
1859 |
@item |
@item |
1860 |
@command{void cmd_handler_remove (t_weechat_plugin *plugin, |
@command{void handler_remove (t_weechat_plugin *plugin, |
1861 |
t_plugin_cmd_handler *cmd_handler)}@* |
t_plugin_handler *handler)}@* |
1862 |
@* |
@* |
1863 |
Remove a command handler.@* |
Remove a handler.@* |
1864 |
|
|
1865 |
@emph{Arguments:} |
@emph{Arguments:} |
1866 |
@itemize @minus |
@itemize @minus |
1867 |
@item @option{plugin}: pointer to plugin structure |
@item @option{plugin}: pointer to plugin structure |
1868 |
@item @option{cmd_handler}: command handler to remove |
@item @option{handler}: handler to remove |
1869 |
@end itemize |
@end itemize |
1870 |
@* |
@* |
1871 |
@emph{Return value:}@* |
@emph{Return value:}@* |
1874 |
@* |
@* |
1875 |
@emph{Example:}@* |
@emph{Example:}@* |
1876 |
@* |
@* |
1877 |
@code{plugin->cmd_handler_remove (plugin, my_cmd_handler);}@* |
@code{plugin->handler_remove (plugin, my_handler);}@* |
1878 |
@* |
@* |
1879 |
|
|
1880 |
@item |
@item |
1881 |
@command{void cmd_handler_remove_all (t_weechat_plugin *plugin)}@* |
@command{void handler_remove_all (t_weechat_plugin *plugin)}@* |
1882 |
@* |
@* |
1883 |
Remove all command handlers for a plugin.@* |
Remove all handlers for a plugin.@* |
1884 |
|
|
1885 |
@emph{Arguments:} |
@emph{Arguments:} |
1886 |
@itemize @minus |
@itemize @minus |
1893 |
@* |
@* |
1894 |
@emph{Example :}@* |
@emph{Example :}@* |
1895 |
@* |
@* |
1896 |
@code{plugin->cmd_handler_remove_all (plugin);}@* |
@code{plugin->handler_remove_all (plugin);}@* |
1897 |
@* |
@* |
1898 |
|
|
1899 |
@item |
@item |