summaryrefslogtreecommitdiff
path: root/src/plugins/plugins.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-10-03 16:29:05 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-10-03 16:29:05 +0000
commit7ef14b95b69a1adf41006939fc42fa101b309003 (patch)
tree0788024a13eaebab7b7e634ae61f2e025044c8c3 /src/plugins/plugins.c
parent4e5f1698ba98ca879ddafc2fdef72c295a50e6b3 (diff)
downloadweechat-7ef14b95b69a1adf41006939fc42fa101b309003.zip
Added IRC::command function for Perl scripts
Diffstat (limited to 'src/plugins/plugins.c')
-rw-r--r--src/plugins/plugins.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index 74ac3db3d..8b2b53c52 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -273,7 +273,7 @@ plugin_handler_free_all_type (t_plugin_handler **plugin_handlers,
*/
void
-plugin_event_msg (char *irc_command, char *arguments)
+plugin_event_msg (char *irc_command, char *arguments, char *server)
{
#ifdef PLUGINS
t_plugin_handler *ptr_plugin_handler;
@@ -285,7 +285,7 @@ plugin_event_msg (char *irc_command, char *arguments)
{
#ifdef PLUGIN_PERL
if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PERL)
- wee_perl_exec (ptr_plugin_handler->function_name, arguments);
+ wee_perl_exec (ptr_plugin_handler->function_name, arguments, server);
#endif
}
}
@@ -301,7 +301,7 @@ plugin_event_msg (char *irc_command, char *arguments)
*/
int
-plugin_exec_command (char *user_command, char *arguments)
+plugin_exec_command (char *user_command, char *arguments, char *server)
{
#ifdef PLUGINS
t_plugin_handler *ptr_plugin_handler;
@@ -313,7 +313,7 @@ plugin_exec_command (char *user_command, char *arguments)
{
#ifdef PLUGIN_PERL
if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PERL)
- wee_perl_exec (ptr_plugin_handler->function_name, arguments);
+ wee_perl_exec (ptr_plugin_handler->function_name, arguments, server);
#endif
/* command executed */