aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-01-25 20:23:18 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-01-25 20:23:18 +1300
commit19e26ac7fb21a16761859553487df0148b7f2914 (patch)
tree6722d2fc2a0fcd67905859835fdbd00d41394ee5 /Plugin
parenta559dfeefa6983eae67fb678e288e8bdd09328e1 (diff)
downloadidalius-19e26ac7fb21a16761859553487df0148b7f2914.tar.xz
Natural: Fix incorrect sub invocation
Diffstat (limited to 'Plugin')
-rw-r--r--Plugin/Natural.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Plugin/Natural.pm b/Plugin/Natural.pm
index 501bf11..3d16eed 100644
--- a/Plugin/Natural.pm
+++ b/Plugin/Natural.pm
@@ -94,7 +94,8 @@ sub on_message {
}
my $response;
- if ($what =~ /\b\Q$irc->nick_name()\E\b/) {
+ my $own_nick = $irc->nick_name();
+ if ($what =~ /\b\Q$own_nick\E\b/) {
return unless mention_odds();
$response = choose_mention_response($what, $nick);
} else {