diff options
| author | 2008-04-03 16:15:43 +0000 | |
|---|---|---|
| committer | 2008-04-03 16:15:43 +0000 | |
| commit | f16546dc65b85f829f7e5a7945f4f867ac642ae1 (patch) | |
| tree | 29a82a9ff76e034ff942127c1a5d88454e1596a4 /src/modules/m_xmlsocket.cpp | |
| parent | Backport 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.cpp | 6 |
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 { |
