diff options
author | David Phillips <david@yeah.nah.nz> | 2018-11-24 21:35:25 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2018-11-24 21:56:03 +1300 |
commit | 417a2265b463f9e7a695e883b3a26036d03c0dc8 (patch) | |
tree | a5b93e62b1ec64957191bf79187d569653eb8ea4 /Plugin/Natural.pm | |
parent | 7f2403aa647e72d83ec00ac596dfbef778945ff0 (diff) | |
download | idalius-417a2265b463f9e7a695e883b3a26036d03c0dc8.tar.xz |
Large refactor - modularise logging, rejoin and join-on-invitation
Diffstat (limited to 'Plugin/Natural.pm')
-rw-r--r-- | Plugin/Natural.pm | 4 |
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 { |