From d8fdcedc3d53eb223caaa10f09ac0924ed18908c Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Tue, 7 Jan 2014 17:00:52 +0100 Subject: [PATCH] Bug in !get --- lib/commands/parser.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands/parser.pm b/lib/commands/parser.pm index 5f64234..e209fd7 100644 --- a/lib/commands/parser.pm +++ b/lib/commands/parser.pm @@ -62,8 +62,8 @@ sub exec { commands::tag::exec($id, $msg); } - elsif ($msg =~ /^( *!get(?: +.*)?$)/) { - $msg = substr $msg, length $1; + elsif ($msg =~ /^( *!get)(?: +.*)?$/) { + $msg = substr $msg, (length $1) + 1; my @args = ($kernel, $user, $chan, $msg); my $id = commands::get::exec(@args); -- GitLab