Explorar o código

Allow 'blah = "value"' in pisg.cfg

Morten Brix Pedersen %!s(int64=25) %!d(string=hai) anos
pai
achega
412645f0aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pisg.pl

+ 1 - 1
pisg.pl

@@ -341,7 +341,7 @@ sub init_config
                 }
                 while (<CONFIG>) {
                     last if ($_ =~ /<\/*channel>/i);
-                    while ($_ =~ s/^\s*([^=]+)=["']([^"']*)["']//) {
+                    while ($_ =~ s/^\s*(\w+)\s*=\s*["']([^"']*)["']//) {
                         my $var = lc($1);
                         unless ($conf->{cmdl}{$var}) {
                             $chans->{$channel}{$var} = $2;