From 6074ece09644f477452930dba104790921b81e94 Mon Sep 17 00:00:00 2001 From: Joey Pabalinas Date: Tue, 31 Jul 2018 07:21:07 -1000 Subject: Timezone: make $nick matching case-insensitive Signed-off-by: Joey Pabalinas --- Plugin/Timezone.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugin') 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"); -- cgit v1.1