mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
ad3825303f
commit
93f7ee5268
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user