3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

IRCHandlers: er, strip leading - when ISUPPORT removes support

This commit is contained in:
Pragmatic Software 2021-06-25 09:35:19 -07:00
parent 69abb9177e
commit ecfac55745

View File

@ -576,7 +576,7 @@ sub on_isupport {
foreach my $arg (@{$event->{event}->{args}}) { foreach my $arg (@{$event->{event}->{args}}) {
my ($key, $value) = split /=/, $arg; my ($key, $value) = split /=/, $arg;
if ($key =~ /^-/) { if ($key =~ s/^-//) {
# server removed suppport for this key # server removed suppport for this key
delete $self->{pbot}->{isupport}->{$key}; delete $self->{pbot}->{isupport}->{$key};
} else { } else {