diff options
-rw-r--r-- | src/plugins/plugins-interface.c | 2 | ||||
-rw-r--r-- | weechat/src/plugins/plugins-interface.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c index f9e2a0a4d..861856c2d 100644 --- a/src/plugins/plugins-interface.c +++ b/src/plugins/plugins-interface.c @@ -290,6 +290,8 @@ weechat_plugin_exec_command (t_weechat_plugin *plugin, user_command (ptr_server, ptr_channel->buffer, command); else if (ptr_server && (ptr_server->buffer)) user_command (ptr_server, ptr_server->buffer, command); + else + user_command (NULL, gui_buffers, command); } /* diff --git a/weechat/src/plugins/plugins-interface.c b/weechat/src/plugins/plugins-interface.c index f9e2a0a4d..861856c2d 100644 --- a/weechat/src/plugins/plugins-interface.c +++ b/weechat/src/plugins/plugins-interface.c @@ -290,6 +290,8 @@ weechat_plugin_exec_command (t_weechat_plugin *plugin, user_command (ptr_server, ptr_channel->buffer, command); else if (ptr_server && (ptr_server->buffer)) user_command (ptr_server, ptr_server->buffer, command); + else + user_command (NULL, gui_buffers, command); } /* |