summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-01 02:03:35 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-01 02:03:35 -0500
commite68921f423402cf9e128610dcc1556d72a448fad (patch)
treed398267265a356109a03f96fa560f083afa3d866
parentb25a41e690cfeea828e4a06d3c7cefabc3113898 (diff)
downloadbot-games-e68921f423402cf9e128610dcc1556d72a448fad.tar.gz
bot-games-e68921f423402cf9e128610dcc1556d72a448fad.zip
use the actual Bool formatter from the metaclass instead of duplicating
-rw-r--r--lib/Bot/Games/Game.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm
index 6d0c29c..088a906 100644
--- a/lib/Bot/Games/Game.pm
+++ b/lib/Bot/Games/Game.pm
@@ -39,7 +39,7 @@ has players => (
command => 1,
);
command 'num_players';
-command 'has_player', formatter => sub { $_[0] ? 'true' : 'false' };
+command 'has_player', formatter => __PACKAGE__->meta->formatter_for('Bool');
has start_time => (
is => 'ro',