From 114a22263299efccafbb7e62081171f5d497f7fe Mon Sep 17 00:00:00 2001 From: doy Date: Wed, 14 Jan 2009 22:11:50 -0500 Subject: convert the plugins over to using the command syntax --- lib/Bot/Games/Game/Xghost.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bot/Games/Game/Xghost.pm') diff --git a/lib/Bot/Games/Game/Xghost.pm b/lib/Bot/Games/Game/Xghost.pm index 8aeabb2..8f9092d 100644 --- a/lib/Bot/Games/Game/Xghost.pm +++ b/lib/Bot/Games/Game/Xghost.pm @@ -8,12 +8,12 @@ has '+help' => ( default => "xghost help", ); -sub valid_move { +command valid_move => { my $self = shift; my ($move) = @_; return is_substring($self->state, uc($move)) && length($self->state) + 1 == length($move); -} +}; __PACKAGE__->meta->make_immutable; no Bot::Games::OO; -- cgit v1.2.3-54-g00ecf