]> git.donarmstrong.com Git - infobot.git/commitdiff
* Use Don's patch to allow leading and trailing spaces in the server list
authordjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 19 Oct 2007 10:54:11 +0000 (10:54 +0000)
committerdjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 19 Oct 2007 10:54:11 +0000 (10:54 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1572 c11ca15a-4712-0410-83d8-924469b57eb5

src/Files.pl

index 080297fdaa7f88ec87bfbc7473d0b48d9ea35cb1..b68f21871bb9586a295055e9bd8f12d31b3bc289 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 {