summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Xghost.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Xghost.pm')
-rw-r--r--lib/Bot/Games/Game/Xghost.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/Xghost.pm b/lib/Bot/Games/Game/Xghost.pm
index 8f9092d..0c44cff 100644
--- a/lib/Bot/Games/Game/Xghost.pm
+++ b/lib/Bot/Games/Game/Xghost.pm
@@ -8,7 +8,7 @@ has '+help' => (
default => "xghost help",
);
-command valid_move => {
+command valid_move => sub {
my $self = shift;
my ($move) = @_;
return is_substring($self->state, uc($move))