Added a new "reply" command

This commit is contained in:
Craig Andrews
2009-10-27 22:30:21 -04:00
parent 7b30e3c00f
commit da16dc05a8
2 changed files with 80 additions and 2 deletions

View File

@@ -134,6 +134,17 @@ class CommandInterpreter
} else {
return new MessageCommand($user, $other, $extra);
}
case 'r':
case 'reply':
if (!$arg) {
return null;
}
list($other, $extra) = $this->split_arg($arg);
if (!$extra) {
return null;
} else {
return new ReplyCommand($user, $other, $extra);
}
case 'whois':
if (!$arg) {
return null;