mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user