aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Greet.pm
diff options
context:
space:
mode:
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 {