Add lose <nickname> command to the command interpreter

This commit is contained in:
Craig Andrews
2010-02-22 22:57:16 -05:00
parent daccaeb748
commit f0d1d07b94
3 changed files with 84 additions and 1 deletions

View File

@@ -47,6 +47,17 @@ class CommandInterpreter
} else {
return new LoginCommand($user);
}
case 'lose':
if ($arg) {
list($other, $extra) = $this->split_arg($arg);
if ($extra) {
return null;
} else {
return new LoseCommand($user, $other);
}
} else {
return null;
}
case 'subscribers':
if ($arg) {
return null;