X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FFiles.pl;h=b68f21871bb9586a295055e9bd8f12d31b3bc289;hb=97931c98069a7aefcc798cd6e6b5e51c84bd5960;hp=938f6155c7a7c087953a92dcbb524f79ff080b5c;hpb=3936a3e1255582305fc4200485b71fa692e66bd3;p=infobot.git diff --git a/src/Files.pl b/src/Files.pl index 938f615..b68f218 100644 --- a/src/Files.pl +++ b/src/Files.pl @@ -53,7 +53,7 @@ sub loadLang { # File: Irc Servers list. sub loadIRCServers { - my ($file) = $bot_config_dir."/blootbot.servers"; + my ($file) = $bot_config_dir."/infobot.servers"; @ircServers = (); %ircPort = (); @@ -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 {