aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_xmlsocket.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-04-03 16:15:43 +0000
committerGravatar brain2008-04-03 16:15:43 +0000
commitf16546dc65b85f829f7e5a7945f4f867ac642ae1 (patch)
tree29a82a9ff76e034ff942127c1a5d88454e1596a4 /src/modules/m_xmlsocket.cpp
parentBackport r9285: wallops should be sent regardless of oper status (diff)
Make this more readable by not reusing the loop variable name inside the inner loop, this is what caused the problem in trunk
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9289 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_xmlsocket.cpp')
-rw-r--r--src/modules/m_xmlsocket.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp
index c82501f99..721609097 100644
--- a/src/modules/m_xmlsocket.cpp
+++ b/src/modules/m_xmlsocket.cpp
@@ -61,9 +61,9 @@ class ModuleXMLSocket : public Module
if (ServerInstance->Config->AddIOHook(portno, this))
{
listenports.push_back(portno);
- for (size_t i = 0; i < ServerInstance->Config->ports.size(); i++)
- if (ServerInstance->Config->ports[i]->GetPort() == portno)
- ServerInstance->Config->ports[i]->SetDescription("xml");
+ for (size_t j = 0; i < ServerInstance->Config->ports.size(); i++)
+ if (ServerInstance->Config->ports[j]->GetPort() == portno)
+ ServerInstance->Config->ports[j]->SetDescription("xml");
}
else
{