3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

Plugins/Date.pm: oops, use $arguments too

This commit is contained in:
Pragmatic Software 2020-01-25 15:19:08 -08:00
parent 7ba505faf5
commit b66596d9ed

View File

@ -42,6 +42,7 @@ sub datecmd {
my $timezone = $self->{pbot}->{registry}->get_value('date', 'default_timezone') // 'UTC';
my $tz_override = $self->{pbot}->{users}->get_loggedin_user_metadata($from, "$nick!$user\@$host", 'timezone');
$timezone = $tz_override if $tz_override;
$timezone = $arguments if length $arguments;
my $newstuff = {
from => $from, nick => $nick, user => $user, host => $host,