1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

Fixed plugin command handler call when no argument is given

This commit is contained in:
Sebastien Helleu
2006-04-01 07:43:51 +00:00
parent c803419616
commit d86af240fa
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -491,11 +491,12 @@ plugin_cmd_handler_exec (char *server, char *command, char *arguments)
t_weechat_plugin *ptr_plugin;
t_plugin_handler *ptr_handler;
int return_code;
char empty_arg[1] = { '\0' };
char *argv[3] = { NULL, NULL, NULL };
argv[0] = server;
argv[1] = command;
argv[2] = arguments;
argv[2] = (arguments) ? arguments : empty_arg;
for (ptr_plugin = weechat_plugins; ptr_plugin;
ptr_plugin = ptr_plugin->next_plugin)
+2 -1
View File
@@ -491,11 +491,12 @@ plugin_cmd_handler_exec (char *server, char *command, char *arguments)
t_weechat_plugin *ptr_plugin;
t_plugin_handler *ptr_handler;
int return_code;
char empty_arg[1] = { '\0' };
char *argv[3] = { NULL, NULL, NULL };
argv[0] = server;
argv[1] = command;
argv[2] = arguments;
argv[2] = (arguments) ? arguments : empty_arg;
for (ptr_plugin = weechat_plugins; ptr_plugin;
ptr_plugin = ptr_plugin->next_plugin)