use COMMAND_REGISTER macro
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
This commit is contained in:
@@ -541,7 +541,7 @@ COMMAND_HANDLER(handle_shutdown_command)
|
||||
|
||||
int server_register_commands(struct command_context *context)
|
||||
{
|
||||
register_command(context, NULL, "shutdown",
|
||||
COMMAND_REGISTER(context, NULL, "shutdown",
|
||||
handle_shutdown_command, COMMAND_ANY,
|
||||
"shut the server down");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user