bool User::HasPrivPermission(const std::string &privstr, bool noisy)
{
- ServerInstance->Logs->Log("PRIVS", DEBUG, "Checking if I have " + privstr);
if (!IS_LOCAL(this))
{
ServerInstance->Logs->Log("PRIVS", DEBUG, "Remote (yes)");
{
if (noisy)
this->WriteServ("NOTICE %s :You are not an oper", this->nick.c_str());
- ServerInstance->Logs->Log("PRIVS", DEBUG, "Not oper (no)");
return false;
}
{
if (noisy)
this->WriteServ("NOTICE %s :Privset empty(!?)", this->nick.c_str());
- ServerInstance->Logs->Log("PRIVS", DEBUG, "No privs(?) (no)");
return false;
}