Added validation to /role and /affiliation

This commit is contained in:
James Booth
2014-10-12 01:32:15 +01:00
parent 77684cda00
commit da373e9097
2 changed files with 34 additions and 29 deletions

View File

@@ -311,14 +311,13 @@ static struct cmd_t command_defs[] =
NULL } } },
{ "/room",
cmd_room, parse_args_with_freetext, 1, 5, NULL,
{ "/room accept|destroy|config|info", "Room configuration.",
{ "/room accept|destroy|config|info",
"--------------------------------",
cmd_room, parse_args, 1, 1, NULL,
{ "/room accept|destroy|config", "Room configuration.",
{ "/room accept|destroy|config",
"---------------------------",
"accept - Accept default room configuration.",
"destroy - Reject default room configuration.",
"config - Edit room configuration.",
"info - Show room details.",
NULL } } },
{ "/kick",
@@ -331,7 +330,7 @@ static struct cmd_t command_defs[] =
NULL } } },
{ "/ban",
cmd_ban, parse_args, 1, 2, NULL,
cmd_ban, parse_args_with_freetext, 1, 2, NULL,
{ "/ban jid [reason]", "Ban users from chat rooms.",
{ "/ban jid [reason]",
"-----------------",