summaryrefslogtreecommitdiff
path: root/src/plugins/plugins-interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugins-interface.c')
-rw-r--r--src/plugins/plugins-interface.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c
index a45ec7480..f9298cee6 100644
--- a/src/plugins/plugins-interface.c
+++ b/src/plugins/plugins-interface.c
@@ -357,6 +357,46 @@ weechat_plugin_handler_remove_all (t_weechat_plugin *plugin)
}
/*
+ * weechat_plugin_modifier_add: add a IRC message modifier
+ */
+
+t_plugin_modifier *
+weechat_plugin_modifier_add (t_weechat_plugin *plugin,
+ char *type, char *message,
+ t_plugin_modifier_func *modifier_func,
+ char *modifier_args, void *modifier_pointer)
+{
+ if (plugin && type && modifier_func)
+ return plugin_modifier_add (plugin, type, message, modifier_func,
+ modifier_args, modifier_pointer);
+
+ return NULL;
+}
+
+/*
+ * weechat_plugin_modifier_remove: remove a WeeChat modifier
+ */
+
+void
+weechat_plugin_modifier_remove (t_weechat_plugin *plugin,
+ t_plugin_modifier *modifier)
+{
+ if (plugin && modifier)
+ plugin_modifier_remove (plugin, modifier);
+}
+
+/*
+ * weechat_plugin_modifier_remove_all: remove all WeeChat modifiers
+ */
+
+void
+weechat_plugin_modifier_remove_all (t_weechat_plugin *plugin)
+{
+ if (plugin)
+ plugin_modifier_remove_all (plugin);
+}
+
+/*
* weechat_plugin_exec_command: execute a command (simulate user entry)
*/