From 417a2265b463f9e7a695e883b3a26036d03c0dc8 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 24 Nov 2018 21:35:25 +1300 Subject: Large refactor - modularise logging, rejoin and join-on-invitation --- Plugin/Greet.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Plugin/Greet.pm') 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 { -- cgit v1.1