Explorar o código

Fix an 'Unrecognized line' on empty lines in channel statement

Morten Brix Pedersen %!s(int64=24) %!d(string=hai) anos
pai
achega
1303b23bd7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/Pisg.pm

+ 1 - 1
modules/Pisg.pm

@@ -391,7 +391,7 @@ sub init_config
                                 $self->{chans}->{$channel}{$var} = $2;
                             }
                         }
-                    } else {
+                    } elsif ($_ !~ /^$/) {
                         print STDERR "Warning: $self->{cfg}->{configfile}, line $.: Unrecognized line\n";
                     }
                 }