1.1 --- a/src/org/sonews/daemon/command/XDaemonCommand.java Sun Aug 29 18:17:37 2010 +0200
1.2 +++ b/src/org/sonews/daemon/command/XDaemonCommand.java Tue Jun 07 11:55:22 2011 +0200
1.3 @@ -127,6 +127,16 @@
1.4 group.update();
1.5 conn.println("200 group " + commands[2] + " marked as deleted");
1.6 }
1.7 + } else if(commands.length == 5 && commands[1].equalsIgnoreCase("GROUPFLAG")) {
1.8 + Group group = StorageManager.current().getGroup(commands[2]);
1.9 + String flagName = commands[4];
1.10 + if(commands[3].equalsIgnoreCase("SET")) {
1.11 +
1.12 + } else if(commands[3].equalsIgnoreCase("UNSET")) {
1.13 +
1.14 + } else {
1.15 + conn.println("500 invalid command usage");
1.16 + }
1.17 } else if (commands.length == 4 && commands[1].equalsIgnoreCase("SET")) {
1.18 String key = commands[2];
1.19 String val = commands[3];
1.20 @@ -194,6 +204,7 @@
1.21 conn.println("401 unknown sub command");
1.22 }
1.23 } else if (commands.length >= 3 && commands[1].equalsIgnoreCase("PLUGIN")) {
1.24 + conn.println("400 invalid command usage");
1.25 } else {
1.26 conn.println("400 invalid command usage");
1.27 }