]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_xmlsocket.cpp
Add 906, sasl aborted
[user/henk/code/inspircd.git] / src / modules / m_xmlsocket.cpp
index bf50fe012ec76a242fb8e8e9b07eccbcce704f2f..cacd1f3484b72f65cefad7a8829cd21b31b2e832 100644 (file)
@@ -59,18 +59,18 @@ 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; j < ServerInstance->Config->ports.size(); j++)
+                                                               if (ServerInstance->Config->ports[j]->GetPort() == portno)
+                                                                       ServerInstance->Config->ports[j]->SetDescription("xml");
                                                }
                                                else
                                                {
-                                                       ServerInstance->Log(DEFAULT, "m_xmlsocket.so: FAILED to enable XMLSocket on port %d, maybe you have another similar module loaded?", portno);
+                                                       ServerInstance->Logs->Log("m_xmlsocket",DEFAULT, "m_xmlsocket.so: FAILED to enable XMLSocket on port %d, maybe you have another similar module loaded?", portno);
                                                }
                                        }
                                        catch (ModuleException &e)
                                        {
-                                               ServerInstance->Log(DEFAULT, "m_xmlsocket.so: FAILED to enable XMLSocket on port %d: %s. Maybe it's already hooked by the same port on a different IP, or you have another similar module loaded?", portno, e.GetReason());
+                                               ServerInstance->Logs->Log("m_xmlsocket",DEFAULT, "m_xmlsocket.so: FAILED to enable XMLSocket on port %d: %s. Maybe it's already hooked by the same port on a different IP, or you have another similar module loaded?", portno, e.GetReason());
                                        }
                                }
                        }