aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-04-10 11:28:06 +1200
committerDavid Phillips <david@sighup.nz>2018-04-10 11:28:06 +1200
commitade8785c730116d829fdd2902b6dc1bdcceae6c0 (patch)
treed23d5c0414a1112a8d6bfe34cd603bd653d1408c
parent67f53466bc435b976dc1a4dd76fb1ba45b85c55f (diff)
downloadidalius-ade8785c730116d829fdd2902b6dc1bdcceae6c0.tar.xz
Rename poorly named variable
-rw-r--r--plugin/timezone.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/timezone.pm b/plugin/timezone.pm
index 39ff3f0..ecbbd73 100644
--- a/plugin/timezone.pm
+++ b/plugin/timezone.pm
@@ -19,7 +19,7 @@ sub configure {
sub message {
my ($self, $logger, $me, $who, $where, $raw_what, $what, $irc) = @_;
- my $who_nick = ( split /!/, $who )[0];
+ my $requester = ( split /!/, $who )[0];
my @known_zones = (keys %{$config{timezone}});
if ($what =~ /^%time\s/) {
@@ -28,12 +28,12 @@ sub message {
if (grep {$_ eq $nick} @known_zones) {
my $d = DateTime->now();
$d->set_time_zone($config{timezone}->{$nick});
- return "$who_nick: $nick\'s clock reads $d";
+ return "$requester: $nick\'s clock reads $d";
} else {
- return "$who_nick: I don't know what timezone $nick is in";
+ return "$requester: I don't know what timezone $nick is in";
}
} else {
- return "$who_nick: Syntax: %time [nick]";
+ return "$requester: Syntax: %time [nick]";
}
}
}