]> git.donarmstrong.com Git - infobot.git/commitdiff
* Allow leading and trailing spaces in the server list
authordondelelcaro <dondelelcaro@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Jun 2006 01:24:09 +0000 (01:24 +0000)
committerdondelelcaro <dondelelcaro@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Jun 2006 01:24:09 +0000 (01:24 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1284 c11ca15a-4712-0410-83d8-924469b57eb5

src/Files.pl

index a3dae2e407581d71d867f0d1904b97bbdf78289d..ffd8deaee7057236b55fef7c01f39250c37a6ec2 100644 (file)
@@ -67,7 +67,7 @@ sub loadIRCServers {
        next if /^\s*$/;
        next if /^[\#\[ ]/;
 
-       if (/^(\S+)(:(\d+))?$/) {
+       if (/^\s*(\S+?)(:(\d+))?\s*$/) {
            push(@ircServers,$1);
            $ircPort{$1} = ($3 || 6667);
        } else {