summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Trait/Attribute/Command.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Trait/Attribute/Command.pm')
-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;