mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +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