aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Greet.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-11-24 21:35:25 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-11-24 21:56:03 +1300
commit417a2265b463f9e7a695e883b3a26036d03c0dc8 (patch)
treea5b93e62b1ec64957191bf79187d569653eb8ea4 /Plugin/Greet.pm
parent7f2403aa647e72d83ec00ac596dfbef778945ff0 (diff)
downloadidalius-417a2265b463f9e7a695e883b3a26036d03c0dc8.tar.xz
Large refactor - modularise logging, rejoin and join-on-invitation
Diffstat (limited to 'Plugin/Greet.pm')
-rw-r--r--Plugin/Greet.pm4
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 {