mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 21:06:21 +00:00
Move adding plugins commands to autocompleters
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "command/cmd_defs.h"
|
||||
#include "window_list.h"
|
||||
#include "common.h"
|
||||
#include "command/cmd_ac.h"
|
||||
|
||||
void
|
||||
api_cons_alert(void)
|
||||
@@ -144,6 +145,9 @@ api_register_command(const char *const plugin_name, const char *command_name, in
|
||||
command->help = help;
|
||||
|
||||
callbacks_add_command(plugin_name, command);
|
||||
|
||||
cmd_ac_add(command->command_name);
|
||||
cmd_ac_add_help(&command->command_name[1]);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user