diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-13 18:06:39 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-13 18:06:39 +0000 |
commit | 0ec05c9bb346c1e20f9ab42d56eb17f03991b106 (patch) | |
tree | 8705d6e72f855ac83417a8d77f785e5ebe71b50f /src/modules/m_spanningtree | |
parent | 9d2422582ca07c3c97d99fe7e46cad8c5db839b8 (diff) |
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
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 2143ef11c..3c7ee2cf0 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -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?"); |