/[weechat]/weechat/src/plugins/plugins.c
ViewVC logotype

Diff of /weechat/src/plugins/plugins.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by flashcode, Sat May 7 11:26:31 2005 UTC revision 1.21 by flashcode, Sun May 8 12:19:47 2005 UTC
# Line 290  plugin_handler_free_all_type (t_plugin_h Line 290  plugin_handler_free_all_type (t_plugin_h
290   */   */
291    
292  void  void
293  plugin_event_msg (char *irc_command, char *arguments, char *server)  plugin_event_msg (char *irc_command, char *server, char *arguments)
294  {  {
295      #ifdef PLUGINS      #ifdef PLUGINS
296      t_plugin_handler *ptr_plugin_handler;      t_plugin_handler *ptr_plugin_handler;
# Line 306  plugin_event_msg (char *irc_command, cha Line 306  plugin_event_msg (char *irc_command, cha
306                  if (ptr_plugin_handler->running == 0)                  if (ptr_plugin_handler->running == 0)
307                  {                  {
308                      ptr_plugin_handler->running = 1;                      ptr_plugin_handler->running = 1;
309                      wee_perl_exec (ptr_plugin_handler->function_name, arguments, server);                      wee_perl_exec (ptr_plugin_handler->function_name, server, arguments);
310                      ptr_plugin_handler->running = 0;                      ptr_plugin_handler->running = 0;
311                  }                  }
312              }              }
# Line 317  plugin_event_msg (char *irc_command, cha Line 317  plugin_event_msg (char *irc_command, cha
317                  if (ptr_plugin_handler->running == 0)                  if (ptr_plugin_handler->running == 0)
318                  {                  {
319                      ptr_plugin_handler->running = 1;                      ptr_plugin_handler->running = 1;
320                      wee_python_exec (ptr_plugin_handler->function_name, arguments, server);                      wee_python_exec (ptr_plugin_handler->function_name, server, arguments);
321                      ptr_plugin_handler->running = 0;                      ptr_plugin_handler->running = 0;
322                  }                  }
323              }              }
# Line 337  plugin_event_msg (char *irc_command, cha Line 337  plugin_event_msg (char *irc_command, cha
337   */   */
338    
339  int  int
340  plugin_exec_command (char *user_command, char *arguments, char *server)  plugin_exec_command (char *user_command, char *server, char *arguments)
341  {  {
342      #ifdef PLUGINS      #ifdef PLUGINS
343      t_plugin_handler *ptr_plugin_handler;      t_plugin_handler *ptr_plugin_handler;
# Line 353  plugin_exec_command (char *user_command, Line 353  plugin_exec_command (char *user_command,
353                  if (ptr_plugin_handler->running == 0)                  if (ptr_plugin_handler->running == 0)
354                  {                  {
355                      ptr_plugin_handler->running = 1;                      ptr_plugin_handler->running = 1;
356                      wee_perl_exec (ptr_plugin_handler->function_name, arguments, server);                      wee_perl_exec (ptr_plugin_handler->function_name, server, arguments);
357                      ptr_plugin_handler->running = 0;                      ptr_plugin_handler->running = 0;
358                  }                  }
359              }              }
# Line 364  plugin_exec_command (char *user_command, Line 364  plugin_exec_command (char *user_command,
364                  if (ptr_plugin_handler->running == 0)                  if (ptr_plugin_handler->running == 0)
365                  {                  {
366                      ptr_plugin_handler->running = 1;                      ptr_plugin_handler->running = 1;
367                      wee_python_exec (ptr_plugin_handler->function_name, arguments, server);                      wee_python_exec (ptr_plugin_handler->function_name, server, arguments);
368                      ptr_plugin_handler->running = 0;                      ptr_plugin_handler->running = 0;
369                  }                  }
370              }              }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26