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:
parent
7ba505faf5
commit
b66596d9ed
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user