about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-20 20:58:49 +0100
committerJames Booth <boothj5@gmail.com>2014-10-20 20:58:49 +0100
commite1f5cfb928ee7b034eb0044b1ef83d606ede0258 (patch)
treefe5eb74b1e585045271d9d49ce1a0f53eef68935 /src/command
parent7a88898a21305573accf6fdd80ec6df20ce03026 (diff)
downloadprofani-tty-e1f5cfb928ee7b034eb0044b1ef83d606ede0258.tar.gz
Removed 0.4.5 todo
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 5726b49f..0fba4ee8 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -359,6 +359,16 @@ static struct cmd_t command_defs[] =
           "The affiliation may be one of owner, admin, member, outcast or none.",
           NULL } } },
 
+    { "/affiliations",
+        cmd_affiliation, parse_args, 0, 0, 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_with_freetext, 1, 4, NULL,
         { "/role set|list [role] [nick] [reason]", "Manage room roles.",