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/URL_Title.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Plugin/URL_Title.pm') diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm index cb7474c..6faa689 100644 --- a/Plugin/URL_Title.pm +++ b/Plugin/URL_Title.pm @@ -98,12 +98,13 @@ sub get_title sub get_title_cmd { - my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_; + my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; my ($title, $error) = get_title($rest); $logger->($error) if $error; return $error if $error; + $no_reenter->(); return $title if $title; } -- cgit v1.1