Renamed register_ac->completer_add
This commit is contained in:
@@ -342,7 +342,7 @@ def prof_init(version, status):
|
||||
|
||||
prof.register_command("/python-test", 1, 5, synopsis, description, args, examples, _cmd_pythontest)
|
||||
|
||||
prof.register_ac("/python-test",
|
||||
prof.completer_add("/python-test",
|
||||
[
|
||||
"consalert",
|
||||
"consshow",
|
||||
@@ -361,19 +361,19 @@ def prof_init(version, status):
|
||||
"int",
|
||||
"incoming" ]
|
||||
)
|
||||
prof.register_ac("/python-test get",
|
||||
prof.completer_add("/python-test get",
|
||||
[ "recipient", "room" ]
|
||||
)
|
||||
prof.register_ac("/python-test log",
|
||||
prof.completer_add("/python-test log",
|
||||
[ "debug", "info", "warning", "error" ]
|
||||
)
|
||||
prof.register_ac("/python-test boolean",
|
||||
prof.completer_add("/python-test boolean",
|
||||
[ "get", "set" ]
|
||||
)
|
||||
prof.register_ac("/python-test string",
|
||||
prof.completer_add("/python-test string",
|
||||
[ "get", "set" ]
|
||||
)
|
||||
prof.register_ac("/python-test int",
|
||||
prof.completer_add("/python-test int",
|
||||
[ "get", "set" ]
|
||||
)
|
||||
|
||||
|
||||
@@ -513,22 +513,22 @@ prof_init(const char * const version, const char * const status)
|
||||
"incoming",
|
||||
NULL
|
||||
};
|
||||
prof_register_ac("/c-test", cmd_ac);
|
||||
prof_completer_add("/c-test", cmd_ac);
|
||||
|
||||
char *get_ac[] = { "recipient", "room", NULL };
|
||||
prof_register_ac("/c-test get", get_ac);
|
||||
prof_completer_add("/c-test get", get_ac);
|
||||
|
||||
char *log_ac[] = { "debug", "info", "warning", "error", NULL };
|
||||
prof_register_ac("/c-test log", log_ac);
|
||||
prof_completer_add("/c-test log", log_ac);
|
||||
|
||||
char *boolean_ac[] = { "get", "set", NULL };
|
||||
prof_register_ac("/c-test boolean", boolean_ac);
|
||||
prof_completer_add("/c-test boolean", boolean_ac);
|
||||
|
||||
char *string_ac[] = { "get", "set", NULL };
|
||||
prof_register_ac("/c-test string", string_ac);
|
||||
prof_completer_add("/c-test string", string_ac);
|
||||
|
||||
char *int_ac[] = { "get", "set", NULL };
|
||||
prof_register_ac("/c-test int", int_ac);
|
||||
prof_completer_add("/c-test int", int_ac);
|
||||
|
||||
prof_register_timed(timed_callback, 30);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user