diff options
author | David Phillips <david@yeah.nah.nz> | 2019-01-05 18:16:51 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2019-01-05 18:16:51 +1300 |
commit | 08eeb8b97e96c261b52e55a5426893bc107daccf (patch) | |
tree | c9ef1ce09e9740d95d408aee6f1cb5667cfd476f /Plugin/URL_Title.pm | |
parent | 42489797458338ec2a7c273c3068f7c9d9ee9ece (diff) | |
download | idalius-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/URL_Title.pm')
-rw-r--r-- | Plugin/URL_Title.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |