aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Random.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-21 21:29:17 +1200
committerDavid Phillips <david@sighup.nz>2018-09-21 21:32:28 +1200
commit0475f0bb2fa7ee2f211c67f8df68b014c7fbd213 (patch)
tree5d40897f5508f6c681d93145506d1e4fa0ebd53a /Plugin/Random.pm
parentf2812c477b230a1407381bfbbb393119c7280076 (diff)
downloadidalius-0475f0bb2fa7ee2f211c67f8df68b014c7fbd213.tar.xz
Add runtime module {,un}loading
Diffstat (limited to 'Plugin/Random.pm')
-rw-r--r--Plugin/Random.pm4
1 files changed, 2 insertions, 2 deletions
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;
}