mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-28 05:32:48 +01:00
IRCHandlers: er, strip leading - when ISUPPORT removes support
This commit is contained in:
parent
69abb9177e
commit
ecfac55745
@ -576,7 +576,7 @@ sub on_isupport {
|
||||
foreach my $arg (@{$event->{event}->{args}}) {
|
||||
my ($key, $value) = split /=/, $arg;
|
||||
|
||||
if ($key =~ /^-/) {
|
||||
if ($key =~ s/^-//) {
|
||||
# server removed suppport for this key
|
||||
delete $self->{pbot}->{isupport}->{$key};
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user