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:
parent
69abb9177e
commit
ecfac55745
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user