From d856cb02e0e8935a533fe09e8c958dcd9d819d95 Mon Sep 17 00:00:00 2001 From: dondelelcaro Date: Sat, 3 Jun 2006 01:24:09 +0000 Subject: [PATCH] * Allow leading and trailing spaces in the server list git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1284 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Files.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.pl b/src/Files.pl index a3dae2e..ffd8dea 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 { -- 2.39.2