mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +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}) {
|
||||
%options = ();
|
||||
map { $options{$_} = 1 } @wttr_options;
|
||||
map { my $opt = $_; $opt =~ s/\|.*$//; $options{$opt} = 1 } @wttr_options;
|
||||
delete $options{all};
|
||||
delete $options{default};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user