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
1 changed files with 1 additions and 0 deletions

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,