]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
More debug for Jason
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 17:41:04 +0000 (17:41 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 17:41:04 +0000 (17:41 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9736 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index 0b797f5ee08af600ae75e2baa7565fc9902c8cc5..608d5f728b8e8ff16b6765bffada46ade4e49eda 100644 (file)
@@ -1719,6 +1719,15 @@ ConnectClass* User::SetClass(const std::string &explicit_name)
                {
                        ConnectClass* c = *i;
 
+                       if (c->GetType() == CC_ALLOW)
+                       {
+                               ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "ALLOW %s %d %s", c->GetHost().c_str(), c->GetPort(), c->GetName().c_str());
+                       }
+                       else
+                       {
+                               ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "DENY %s %d %s", c->GetHost().c_str(), c->GetPort(), c->GetName().c_str());
+                       }
+
                        /* check if host matches.. */
                        if (((!match(this->GetIPString(),c->GetHost(),true)) && (!match(this->host,c->GetHost()))))
                        {
@@ -1746,12 +1755,12 @@ ConnectClass* User::SetClass(const std::string &explicit_name)
                        /* if it requires a port ... */
                        if (c->GetPort())
                        {
-                               ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "Requires port");
+                               ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "Requires port (%d)", c->GetPort());
 
                                /* and our port doesn't match, fail. */
                                if (this->GetPort() != c->GetPort())
                                {
-                                       ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "Port match failed");
+                                       ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "Port match failed (%d)", this->GetPort());
                                        continue;
                                }
                        }