summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-02 01:31:33 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-02 01:32:11 -0500
commit7d059870682438390ed816330259a8e23550bfcb (patch)
tree5b62388969180e936d7f07cf838c2c4518aed857
parentcbe5cf384a5fe0933fdf16099dad1bb7b928c00e (diff)
downloadbot-games-7d059870682438390ed816330259a8e23550bfcb.tar.gz
bot-games-7d059870682438390ed816330259a8e23550bfcb.zip
todo comment
-rw-r--r--lib/Bot/Games/Trait/Attribute/Command.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bot/Games/Trait/Attribute/Command.pm b/lib/Bot/Games/Trait/Attribute/Command.pm
index ee6e732..a873461 100644
--- a/lib/Bot/Games/Trait/Attribute/Command.pm
+++ b/lib/Bot/Games/Trait/Attribute/Command.pm
@@ -20,6 +20,9 @@ before _process_options => sub {
if exists($options->{needs_init}) && !$options->{command};
};
+# XXX: accessor_metaclass is also used for things like predicates, so all
+# predicates associated with command attributes are being made commands too...
+# this shouldn't be the case
around accessor_metaclass => sub {
my $orig = shift;
my $self = shift;