mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 19:49: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())
|
if (AllowedPrivs->find(privstr) != AllowedPrivs->end())
|
||||||
{
|
{
|
||||||
ServerInstance->Logs->Log("PRIVS", DEBUG, "I do have it.");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (AllowedPrivs->find("*") != AllowedPrivs->end())
|
else if (AllowedPrivs->find("*") != AllowedPrivs->end())
|
||||||
{
|
{
|
||||||
ServerInstance->Logs->Log("PRIVS", DEBUG, "I allow all.");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noisy)
|
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());
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user