aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
authorJoey Pabalinas <joeypabalinas@gmail.com>2018-07-31 07:21:07 -1000
committerJoey Pabalinas <joeypabalinas@gmail.com>2018-07-31 07:21:07 -1000
commit6074ece09644f477452930dba104790921b81e94 (patch)
treefecc2f887ecfe9470a6245b447c91ed9b1f9fd84 /Plugin
parent9de6b01a1a98c1129ecac7fd3d099201b651303f (diff)
downloadidalius-6074ece09644f477452930dba104790921b81e94.tar.xz
Timezone: make $nick matching case-insensitive
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
Diffstat (limited to 'Plugin')
-rw-r--r--Plugin/Timezone.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/Timezone.pm b/Plugin/Timezone.pm
index 106cd8f..6dcd0c0 100644
--- a/Plugin/Timezone.pm
+++ b/Plugin/Timezone.pm
@@ -29,7 +29,7 @@ sub time {
return "Syntax: time [nick]" unless @arguments == 1;
my $nick = $arguments[0];
- if (grep {$_ eq $nick} @known_zones) {
+ if (grep {$_ =~ /^$nick$/i} @known_zones) {
my $d = DateTime->now();
$d->set_time_zone($config{timezone}->{$nick});
my $timestr = $d->strftime("%Y-%m-%d %H:%M %Z");