This doesn't need to be inside the loop. There is only one IP for (potentially) multiple ports, after all..

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8921 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-02-13 18:06:39 +00:00
parent 9d2422582c
commit 0ec05c9bb3

View File

@ -418,11 +418,12 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind)
{
irc::portparser portrange(Port, false);
int portno = -1;
if (IP == "*")
IP.clear();
while ((portno = portrange.GetToken()))
{
if (IP == "*")
IP.clear();
if ((!transport.empty()) && (hooks.find(transport.c_str()) == hooks.end()))
{
throw CoreException("Can't find transport type '"+transport+"' for port "+IP+":"+Port+" - maybe you forgot to load it BEFORE m_spanningtree in your config file?");