From bed4e1c9e96b2bf2208f987479d15e3f624aac6a Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Sat, 12 Dec 2009 21:24:38 -0500 Subject: Add repeat command --- lib/commandinterpreter.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/commandinterpreter.php') 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; -- cgit v1.2.3-54-g00ecf