SourceForge has been redesigned. Learn more.
Close

#36 Bad parsing of files/blootbot.servers

open
nobody
Main (6)
5
2014-08-16
2007-03-14
Udo Müller
No

The regexp in file src/Files.pl, line 70 doesnt match at entries in files/blootbot.servers which have a port value like:

irc.freenode.net:8000

\S matches the : too => result: (\S+) matches the complete line.

To avoid those errors replace

if (/^(\S+)(:(\d+))?$/) {

with

if (/^(\S+?)(:(\d+))?$/) {

That makes the + operator non-greedy.

LongDon (bzflag)

Discussion


Log in to post a comment.