mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-25 19:44:26 +01:00
Plugins/Wttr: fix -all not handling "sunrise|sunset" properly
This commit is contained in:
parent
23750d0ef7
commit
28f102d88c
@ -102,7 +102,7 @@ sub wttrcmd {
|
|||||||
|
|
||||||
if (defined $options{all}) {
|
if (defined $options{all}) {
|
||||||
%options = ();
|
%options = ();
|
||||||
map { $options{$_} = 1 } @wttr_options;
|
map { my $opt = $_; $opt =~ s/\|.*$//; $options{$opt} = 1 } @wttr_options;
|
||||||
delete $options{all};
|
delete $options{all};
|
||||||
delete $options{default};
|
delete $options{default};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user