aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Random.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-01-05 18:16:51 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-01-05 18:16:51 +1300
commit08eeb8b97e96c261b52e55a5426893bc107daccf (patch)
treec9ef1ce09e9740d95d408aee6f1cb5667cfd476f /Plugin/Random.pm
parent42489797458338ec2a7c273c3068f7c9d9ee9ece (diff)
downloadidalius-08eeb8b97e96c261b52e55a5426893bc107daccf.tar.xz
Implement no-reentry request on modules
This fixes duplicate URL titles from a `title of` command, and will likely find use in future.
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 c6ed304..26d5250 100644
--- a/Plugin/Random.pm
+++ b/Plugin/Random.pm
@@ -16,13 +16,13 @@ sub configure {
}
sub shuffle {
- my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_;
+ my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_;
return join " ", List::Util::shuffle(@arguments);
}
sub choose {
- my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_;
+ my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_;
return (List::Util::shuffle(@arguments))[0];
}
1;