summaryrefslogtreecommitdiff
path: root/lib/commandinterpreter.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-02 18:40:18 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-02 18:40:49 -0500
commitb9d40f723bce8e01ddcbbb989bd7035b92cd9af8 (patch)
treea995cf45dbd3d913ba31bd097a5f14cf72a8c095 /lib/commandinterpreter.php
parenta2b830392597d88c435baf54ad0df4ecda02dc41 (diff)
Added 'login' command that gives you a link that can be used to login to the website
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r--lib/commandinterpreter.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php
index b921a17cc..d878fe268 100644
--- a/lib/commandinterpreter.php
+++ b/lib/commandinterpreter.php
@@ -41,6 +41,12 @@ class CommandInterpreter
return null;
}
return new HelpCommand($user);
+ case 'login':
+ if ($arg) {
+ return null;
+ } else {
+ return new LoginCommand($user);
+ }
case 'on':
if ($arg) {
list($other, $extra) = $this->split_arg($arg);