X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_xmlsocket.cpp;h=ea84851725798b46335da9aa53b280e4c624de15;hb=f9ef4ebc9dc4fd46cdafcc76df644b4896251dac;hp=f3bd530f7a19a0629e5cc4f79bc6c5f74936edce;hpb=e588fdca3b29dc3bab6051cf409637a5bace35d8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp index f3bd530f7..ea8485172 100644 --- a/src/modules/m_xmlsocket.cpp +++ b/src/modules/m_xmlsocket.cpp @@ -66,12 +66,12 @@ class ModuleXMLSocket : public Module { listenports.push_back(addr + ":" + ConvToStr(portno)); for (size_t j = 0; j < ServerInstance->Config->ports.size(); j++) - if ((ServerInstance->Config->ports[i]->GetPort() == portno) && (ServerInstance->Config->ports[i]->GetIP() == addr)) + if ((ServerInstance->Config->ports[j]->GetPort() == portno) && (ServerInstance->Config->ports[j]->GetIP() == addr)) ServerInstance->Config->ports[j]->SetDescription("xml"); } catch (ModuleException &e) { - ServerInstance->Logs->Log("m_xmlsocket",DEFAULT, "m_xmlsocket.so: FAILED to enable XMLSocket on port %d: %s. Maybe you have another similar module loaded?", portno, e.GetReason()); + ServerInstance->Logs->Log("m_xmlsocket",DEFAULT, "m_xmlsocket.so: FAILED to enable XMLSocket on port %ld: %s. Maybe you have another similar module loaded?", portno, e.GetReason()); } } }