summaryrefslogtreecommitdiff
path: root/lib/commandinterpreter.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-02-22 22:57:16 -0500
committerCraig Andrews <candrews@integralblue.com>2010-02-22 23:09:14 -0500
commitf0d1d07b94fbd2fe0ecd1c2f18d831a177d11c5c (patch)
tree92695af4999f72917dab39d65cbef7b8f4d8c5f2 /lib/commandinterpreter.php
parentdaccaeb748fff65186fff85e28cda92f268dbc60 (diff)
Add lose <nickname> command to the command interpreter
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r--lib/commandinterpreter.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php
index c2add7299..fbc6174bb 100644
--- a/lib/commandinterpreter.php
+++ b/lib/commandinterpreter.php
@@ -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;