aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {