diff options
| author | 2008-02-13 18:06:39 +0000 | |
|---|---|---|
| committer | 2008-02-13 18:06:39 +0000 | |
| commit | 0ec05c9bb346c1e20f9ab42d56eb17f03991b106 (patch) | |
| tree | 8705d6e72f855ac83417a8d77f785e5ebe71b50f /src/modules/m_spanningtree/utils.cpp | |
| parent | CONSTIFY\! (diff) | |
| download | inspircd++-0ec05c9bb346c1e20f9ab42d56eb17f03991b106.tar.gz inspircd++-0ec05c9bb346c1e20f9ab42d56eb17f03991b106.tar.bz2 inspircd++-0ec05c9bb346c1e20f9ab42d56eb17f03991b106.zip | |
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/utils.cpp')
| -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?"); |
