From f0d1d07b94fbd2fe0ecd1c2f18d831a177d11c5c Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Mon, 22 Feb 2010 22:57:16 -0500 Subject: Add lose command to the command interpreter --- lib/commandinterpreter.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/commandinterpreter.php') 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; -- cgit v1.2.3-54-g00ecf