Tone down some logging to make debugging a tiny bit easier.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10977 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2009-01-22 14:17:22 +00:00
parent ad3825303f
commit 93f7ee5268

View File

@ -543,18 +543,15 @@ bool User::HasPrivPermission(const std::string &privstr, bool noisy)
if (AllowedPrivs->find(privstr) != AllowedPrivs->end())
{
ServerInstance->Logs->Log("PRIVS", DEBUG, "I do have it.");
return true;
}
else if (AllowedPrivs->find("*") != AllowedPrivs->end())
{
ServerInstance->Logs->Log("PRIVS", DEBUG, "I allow all.");
return true;
}
if (noisy)
this->WriteServ("NOTICE %s :Oper type %s does not have access to priv %s", this->nick.c_str(), this->oper.c_str(), privstr.c_str());
ServerInstance->Logs->Log("PRIVS", DEBUG, "I don't have it...");
return false;
}