From ade8785c730116d829fdd2902b6dc1bdcceae6c0 Mon Sep 17 00:00:00 2001
From: David Phillips <david@sighup.nz>
Date: Tue, 10 Apr 2018 11:28:06 +1200
Subject: Rename poorly named variable

---
 plugin/timezone.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'plugin')

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]";
 		}
 	}
 }
-- 
cgit v1.1