From 1fc43c1cab6a02df61955dc48dbf6bef3c586c4f Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 18 May 2008 17:41:04 +0000 Subject: [PATCH] More debug for Jason git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9736 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 13 +++++++++++-- 1 file 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; } } -- 2.39.2