X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Dispatcher.pm;h=8d7ffe9843893ba2768cced2fd149a8becec64c5;hp=ccfeb1371329689a2608b810101bc7dd7c2cbc11;hb=e8c94cdebefdc428ea92fde6db63f18d3e8399b2;hpb=b87b6e87c3959096739e54bdf95c23d9e8212145 diff --git a/Dispatcher.pm b/Dispatcher.pm index ccfeb13..8d7ffe9 100644 --- a/Dispatcher.pm +++ b/Dispatcher.pm @@ -67,7 +67,7 @@ sub load_class { my @subs = eval "$class->meta->get_method_list"; for my $c (@subs){ my $attr = eval "$class->meta->get_method('$c')->attributes"; - if ($attr){ + if (@$attr){ print "Command: $c"; my %c = (channels => ['all']); my @aliases; @@ -146,6 +146,7 @@ sub run_command { } } } + return 1; } 1;