diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 17:41:04 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 17:41:04 +0000 |
commit | 1fc43c1cab6a02df61955dc48dbf6bef3c586c4f (patch) | |
tree | 2cfe0e641ec5e97fb3ae7f860e519cc71b4a8ac4 /src/users.cpp | |
parent | 697cf1b6582667119a620b50aa40c0d097444611 (diff) |
More debug for Jason
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9736 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 0b797f5ee..608d5f728 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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; } } |