From 0475f0bb2fa7ee2f211c67f8df68b014c7fbd213 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Fri, 21 Sep 2018 21:29:17 +1200 Subject: Add runtime module {,un}loading --- Plugin/Random.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Plugin/Random.pm') diff --git a/Plugin/Random.pm b/Plugin/Random.pm index cea65fb..c6ed304 100644 --- a/Plugin/Random.pm +++ b/Plugin/Random.pm @@ -9,8 +9,8 @@ sub configure { my $self = shift; my $cmdref = shift; - $cmdref->("shuffle", sub { $self->shuffle(@_); } ); - $cmdref->("choose", sub { $self->choose(@_); } ); + $cmdref->($self, "shuffle", sub { $self->shuffle(@_); } ); + $cmdref->($self, "choose", sub { $self->choose(@_); } ); return $self; } -- cgit v1.1