about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-18 01:37:52 +0100
committerJames Booth <boothj5@gmail.com>2014-10-18 01:37:52 +0100
commit67755ca74d7d7ec53a1365eacfdca883f4c376f2 (patch)
tree65180fac8673e0730e9ed2593ebde13e8f5b1c79 /src/command
parent3790b16299efb29843d4a221c41047d094616b5e (diff)
downloadprofani-tty-67755ca74d7d7ec53a1365eacfdca883f4c376f2.tar.gz
Added reason to role/affiliation changes
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 1579fe79..1954e927 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -348,22 +348,22 @@ static struct cmd_t command_defs[] =
           NULL } } },
 
     { "/affiliation",
-        cmd_affiliation, parse_args, 1, 3, NULL,
-        { "/affiliation set|list [affiliation] [jid]", "Manage room affiliations.",
-        { "/affiliation set|list [affiliation] [jid]",
-          "-----------------------------------------",
-          "set affiliation jid - Set the affiliation of user with jid.",
-          "list [affiliation]  - List all users with the specified affiliation, or all if none specified.",
+        cmd_affiliation, parse_args_with_freetext, 1, 4, NULL,
+        { "/affiliation set|list [affiliation] [jid] [reason]", "Manage room affiliations.",
+        { "/affiliation set|list [affiliation] [jid] [reason]",
+          "--------------------------------------------------",
+          "set affiliation jid [reason]- Set the affiliation of user with jid, with an optional reason.",
+          "list [affiliation]          - List all users with the specified affiliation, or all if none specified.",
           "The affiliation may be one of owner, admin, member, outcast or none.",
           NULL } } },
 
     { "/role",
-        cmd_role, parse_args, 1, 3, NULL,
-        { "/role set|list [role] [nick]", "Manage room roles.",
-        { "/role set|list [role] [nick]",
-          "----------------------------",
-          "set role nick - Set the role of occupant with nick.",
-          "list [role]   - List all occupants with the specified role, or all if none specified.",
+        cmd_role, parse_args_with_freetext, 1, 4, NULL,
+        { "/role set|list [role] [nick] [reason]", "Manage room roles.",
+        { "/role set|list [role] [nick] [reason]",
+          "-------------------------------------",
+          "set role nick [reason] - Set the role of occupant with nick, with an optional reason.",
+          "list [role]            - List all occupants with the specified role, or all if none specified.",
           "The role may be one of moderator, participant, visitor or none.",
           NULL } } },