1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

Fixed call to plugin_exec_command when server is NULL

This commit is contained in:
Sebastien Helleu
2004-10-03 16:40:16 +00:00
parent 2a227141c4
commit e69afa1401
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -540,7 +540,7 @@ exec_weechat_command (t_irc_server *server, char *string)
ptr_args = NULL;
}
if (!plugin_exec_command (command + 1, server->name, ptr_args))
if (!plugin_exec_command (command + 1, (server) ? server->name : "", ptr_args))
{
argv = explode_string (ptr_args, " ", 0, &argc);
+1 -1
View File
@@ -540,7 +540,7 @@ exec_weechat_command (t_irc_server *server, char *string)
ptr_args = NULL;
}
if (!plugin_exec_command (command + 1, server->name, ptr_args))
if (!plugin_exec_command (command + 1, (server) ? server->name : "", ptr_args))
{
argv = explode_string (ptr_args, " ", 0, &argc);