Added prof_cons_bad_cmd_usage plugin function
This commit is contained in:
@@ -63,6 +63,14 @@ api_cons_show(const char * const message)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
api_cons_bad_cmd_usage(const char *const cmd)
|
||||
{
|
||||
if (cmd) {
|
||||
cons_bad_cmd_usage(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
api_register_command(const char *command_name, int min_args, int max_args,
|
||||
const char **synopsis, const char *description, const char *arguments[][2], const char **examples, void *callback,
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
void api_cons_alert(void);
|
||||
void api_cons_show(const char * const message);
|
||||
void api_cons_bad_cmd_usage(const char *const cmd);
|
||||
void api_notify(const char *message, const char *category, int timeout_ms);
|
||||
void api_send_line(char *line);
|
||||
char * api_get_current_recipient(void);
|
||||
|
||||
@@ -67,6 +67,14 @@ c_api_cons_show(const char * const message)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
c_api_cons_bad_cmd_usage(const char *const cmd)
|
||||
{
|
||||
if (cmd) {
|
||||
api_cons_bad_cmd_usage(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
c_api_register_command(const char *command_name, int min_args, int max_args,
|
||||
const char **synopsis, const char *description, const char *arguments[][2], const char **examples,
|
||||
@@ -219,6 +227,7 @@ c_api_init(void)
|
||||
{
|
||||
prof_cons_alert = c_api_cons_alert;
|
||||
prof_cons_show = c_api_cons_show;
|
||||
prof_cons_bad_cmd_usage = c_api_cons_bad_cmd_usage;
|
||||
prof_register_command = c_api_register_command;
|
||||
prof_register_timed = c_api_register_timed;
|
||||
prof_register_ac = c_api_register_ac;
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
#include "plugins/callbacks.h"
|
||||
|
||||
void (*prof_cons_alert)(void) = NULL;
|
||||
|
||||
void (*prof_cons_show)(const char * const message) = NULL;
|
||||
void (*prof_cons_bad_cmd_usage)(const char *const cmd) = NULL;
|
||||
|
||||
void (*prof_register_command)(const char *command_name, int min_args, int max_args,
|
||||
const char **synopsis, const char *description, const char *arguments[][2], const char **examples,
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
typedef char* PROF_WIN_TAG;
|
||||
|
||||
void (*prof_cons_alert)(void);
|
||||
|
||||
void (*prof_cons_show)(const char * const message);
|
||||
void (*prof_cons_bad_cmd_usage)(const char *const cmd);
|
||||
|
||||
void (*prof_register_command)(const char *command_name, int min_args, int max_args,
|
||||
const char **synopsis, const char *description, const char *arguments[][2], const char **examples,
|
||||
|
||||
Reference in New Issue
Block a user