diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-12-12 21:24:38 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-12-12 21:25:21 -0500 |
commit | bed4e1c9e96b2bf2208f987479d15e3f624aac6a (patch) | |
tree | b2168e23d9e7f60c4ea7e2444fd7bc66c97a8875 /lib/commandinterpreter.php | |
parent | b9b8e08c104c63602eeb7ffed2167908fb43d15c (diff) |
Add repeat command
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r-- | lib/commandinterpreter.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index 665015afc..c2add7299 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -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; |