Add repeat command

This commit is contained in:
Craig Andrews
2009-12-12 21:24:38 -05:00
parent b9b8e08c10
commit bed4e1c9e9
2 changed files with 74 additions and 0 deletions

View File

@@ -169,6 +169,19 @@ class CommandInterpreter
} else {
return new ReplyCommand($user, $other, $extra);
}
case 'repeat':
case 'rp':
case 'rt':
case 'rd':
if (!$arg) {
return null;
}
list($other, $extra) = $this->split_arg($arg);
if ($extra) {
return null;
} else {
return new RepeatCommand($user, $other);
}
case 'whois':
if (!$arg) {
return null;