From 08eeb8b97e96c261b52e55a5426893bc107daccf Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 5 Jan 2019 18:16:51 +1300 Subject: Implement no-reentry request on modules This fixes duplicate URL titles from a `title of` command, and will likely find use in future. --- Plugin/Vote.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Plugin/Vote.pm') diff --git a/Plugin/Vote.pm b/Plugin/Vote.pm index 95728c8..2917b11 100644 --- a/Plugin/Vote.pm +++ b/Plugin/Vote.pm @@ -34,7 +34,7 @@ sub has_voted { } sub begin { - my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_; + my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; my $channel = get_channel($where); my $nick = (split /!/, $who)[0]; @@ -48,7 +48,7 @@ sub begin { } sub end { - my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_; + my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; my $channel = get_channel($where); return "No vote is in progress" unless $vote_topic{$channel}; @@ -60,7 +60,7 @@ sub end { } sub yes { - my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_; + my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; my $nick = (split /!/, $who)[0]; my $channel = get_channel($where); @@ -73,7 +73,7 @@ sub yes { } sub no { - my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_; + my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; my $nick = (split /!/, $who)[0]; my $channel = get_channel($where); -- cgit v1.1