1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

Fixed server detection when using "command" interface function from scripts

This commit is contained in:
Sebastien Helleu
2005-11-05 15:14:17 +00:00
parent d94a7d05ea
commit 5830b0ab40
6 changed files with 92 additions and 10 deletions
+4 -4
View File
@@ -279,14 +279,14 @@ void
weechat_plugin_exec_command (t_weechat_plugin *plugin,
char *server, char *channel, char *command)
{
t_gui_buffer *ptr_buffer;
t_irc_server *ptr_server;
if (!plugin || !command)
return;
ptr_buffer = plugin_find_buffer (server, channel);
if (ptr_buffer)
user_command (SERVER(ptr_buffer), ptr_buffer, command);
ptr_server = plugin_find_server (server, channel);
if (ptr_server && (ptr_server->buffer))
user_command (ptr_server, ptr_server->buffer, command);
}
/*