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/Ghost.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/Ghost.pm')
-rw-r--r-- | lib/Bot/Games/Game/Ghost.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm index 52ad2d0..1d65683 100644 --- a/lib/Bot/Games/Game/Ghost.pm +++ b/lib/Bot/Games/Game/Ghost.pm @@ -7,11 +7,11 @@ has '+help' => ( default => "ghost help", ); -sub valid_move { +command valid_move => { my $self = shift; my ($move) = @_; return uc(substr($move, 0, -1)) eq $self->state; -} +}; __PACKAGE__->meta->make_immutable; no Bot::Games::OO; |