]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_conn_umodes.cpp
Make User:: nick/ident/dhost/fullname and some other things std::string instead of...
[user/henk/code/inspircd.git] / src / modules / m_conn_umodes.cpp
index 97a8b83406ad93500c0a539cdbbf6313d482a408..ab017b15724e52e9ad573f82cb2280c184770fc5 100644 (file)
@@ -57,7 +57,8 @@ class ModuleModesOnConnect : public Module
                for (int j = 0; j < Conf->Enumerate("connect"); j++)
                {
                        std::string hostn = Conf->ReadValue("connect","allow",j);
-                       if ((match(user->GetIPString(),hostn.c_str(),true)) || (match(user->host,hostn.c_str())))
+                       /* XXX: Fixme: does not respect port, limit, etc */
+                       if ((match(user->GetIPString(),hostn,true)) || (match(user->host,hostn)))
                        {
                                std::string ThisModes = Conf->ReadValue("connect","modes",j);
                                if (!ThisModes.empty())