class CommandInterpreter
{
-
+
function handle_command($user, $text)
{
# XXX: localise
# We try to support all the same commands as Twitter, see
# http://getsatisfaction.com/twitter/topics/what_are_the_twitter_commands
- # There are a few compatibility commands from earlier versions of
+ # There are a few compatibility commands from earlier versions of
# Laconica
-
+
switch(strtolower($cmd)) {
case 'help':
if ($arg) {
return new GetCommand($user, $other);
}
case 'd':
+ case 'dm':
if (!$arg) {
return null;
}