summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games.pm
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2008-12-18 06:13:12 -0500
committerdoy <doy@tozt.net>2008-12-18 06:13:12 -0500
commit74325cc618d9ae5c9e60ad4058e275681f8c32dc (patch)
tree74a9590f73be6af64ac94f1d6fd3a92d48ddc62f /lib/Bot/Games.pm
parentea0cea0e7ff06bf73dd06d03433fb13448058808 (diff)
downloadbot-games-74325cc618d9ae5c9e60ad4058e275681f8c32dc.tar.gz
bot-games-74325cc618d9ae5c9e60ad4058e275681f8c32dc.zip
anchor the action regex
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r--lib/Bot/Games.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index 2b7e9f8..fc533f1 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -54,7 +54,7 @@ sub said {
return unless defined $action;
my $output;
- if ($action =~ /-(\w+)\s*(.*)/) {
+ if ($action =~ /^-(\w+)\s*(.*)/) {
my ($action, $arg) = ($1, $2);
if ($action =~ s/^_//) {
$output = "$action is private in $game_name";