aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Natural.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin/Natural.pm')
-rw-r--r--Plugin/Natural.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugin/Natural.pm b/Plugin/Natural.pm
index 2d13070..501bf11 100644
--- a/Plugin/Natural.pm
+++ b/Plugin/Natural.pm
@@ -86,7 +86,7 @@ sub choose_normal_response {
}
sub on_message {
- my ($self, $logger, $me, $who, $where, $raw_what, $what, $irc) = @_;
+ my ($self, $logger, $who, $where, $raw_what, $what, $irc) = @_;
my $nick = (split /!/, $who)[0];
if (ref($where) eq "ARRAY") {
@@ -94,7 +94,7 @@ sub on_message {
}
my $response;
- if ($what =~ /\b\Q$root_config->{current_nick}\E\b/) {
+ if ($what =~ /\b\Q$irc->nick_name()\E\b/) {
return unless mention_odds();
$response = choose_mention_response($what, $nick);
} else {