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/Greet.pm | |
parent | 7f2403aa647e72d83ec00ac596dfbef778945ff0 (diff) | |
download | idalius-417a2265b463f9e7a695e883b3a26036d03c0dc8.tar.xz |
Large refactor - modularise logging, rejoin and join-on-invitation
Diffstat (limited to 'Plugin/Greet.pm')
-rw-r--r-- | Plugin/Greet.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugin/Greet.pm b/Plugin/Greet.pm index e66c91a..e28ff26 100644 --- a/Plugin/Greet.pm +++ b/Plugin/Greet.pm @@ -54,10 +54,10 @@ my @own_responses = ( ); sub on_join { - my ($self, $logger, $me, $who, $where, $raw_what, $what, $irc) = @_; + my ($self, $logger, $who, $where, $irc) = @_; my $nick = (split /!/, $who)[0]; my $response; - if ($nick eq $root_config->{current_nick}) { + if ($nick eq $irc->nick_name()) { return unless self_odds(); $response = some @own_responses; } else { |