From 3a79e553b11058f6dfa138412b01f7b67ac814b3 Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Mon, 25 Nov 2013 21:03:20 +0100 Subject: [PATCH] bug fix the "edit" command --- lib/commands/parser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/parser.pm b/lib/commands/parser.pm index 0ae111e..4fed1a0 100644 --- a/lib/commands/parser.pm +++ b/lib/commands/parser.pm @@ -71,7 +71,7 @@ sub exec { } } elsif ($msg =~ /^Sam(?:,|:) +ajoute(?: +à +la +(\d+))? +: +([a-z]*) += +(.*)/) { - my $id = $1 or $lastID->{$chan->[0]}; + my $id = ($1) ? $1 : $lastID->{$chan->[0]}; my $command = $2; my $arg = $3; -- GitLab