about summary refs log tree commit diff stats
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
parent7a88898a21305573accf6fdd80ec6df20ce03026 (diff)
downloadprofani-tty-e1f5cfb928ee7b034eb0044b1ef83d606ede0258.tar.gz
Removed 0.4.5 todo
-rw-r--r--TODO_0453
-rw-r--r--src/command/command.c10
2 files changed, 10 insertions, 3 deletions
diff --git a/TODO_045 b/TODO_045
index 011e7164..e69de29b 100644
--- a/TODO_045
+++ b/TODO_045
@@ -1,3 +0,0 @@
-Test all freetext args     
-Make form editing commands less verbose
-Check /help groupings (add new commands)
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.",