From: djmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Fri, 19 Oct 2007 10:54:11 +0000 (+0000)
Subject: * Use Don's patch to allow leading and trailing spaces in the server list
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=97931c98069a7aefcc798cd6e6b5e51c84bd5960;p=infobot.git

* Use Don's patch to allow leading and trailing spaces in the server list


git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1572 c11ca15a-4712-0410-83d8-924469b57eb5
---

diff --git a/src/Files.pl b/src/Files.pl
index 080297f..b68f218 100644
--- a/src/Files.pl
+++ b/src/Files.pl
@@ -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 {