diff options
author | doy <doy@tozt.net> | 2009-01-14 22:11:50 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-14 22:11:50 -0500 |
commit | 114a22263299efccafbb7e62081171f5d497f7fe (patch) | |
tree | a729be94b0628985ac7944612e09aa25d7248812 /lib/Bot/Games/Game/Xghost.pm | |
parent | 7c535a1574c5f1a28d7fdd0ff66186385c5d12db (diff) | |
download | bot-games-114a22263299efccafbb7e62081171f5d497f7fe.tar.gz bot-games-114a22263299efccafbb7e62081171f5d497f7fe.zip |
convert the plugins over to using the command syntax
Diffstat (limited to 'lib/Bot/Games/Game/Xghost.pm')
-rw-r--r-- | lib/Bot/Games/Game/Xghost.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; |