#include <access.h>

Public Member Functions | |
| AccessGroup () | |
| bool | HasPriv (const Anope::string &priv) const |
| const ChanAccess * | Highest () const |
| bool | operator> (const AccessGroup &other) const |
| bool | operator< (const AccessGroup &other) const |
| bool | operator>= (const AccessGroup &other) const |
| bool | operator<= (const AccessGroup &other) const |
Data Fields | |
| const ChannelInfo * | ci |
| const NickCore * | nc |
| bool | super_admin |
| bool | founder |
Definition at line 125 of file access.h.
| AccessGroup::AccessGroup | ( | ) |
Definition at line 248 of file access.cpp.
References ci, founder, nc, and super_admin.
| bool AccessGroup::HasPriv | ( | const Anope::string & | priv | ) | const |
Check if this access group has a certain privilege. Eg, it will check every ChanAccess entry of this group for any that has the given privilege.
| priv | The privilege |
Definition at line 255 of file access.cpp.
References ci, EVENT_ALLOW, EVENT_CONTINUE, FOREACH_RESULT, founder, ChannelInfo::GetLevel(), ChanAccess::HasPriv(), I_OnCheckPriv, I_OnGroupCheckPriv, and super_admin.
Referenced by BadwordsDelCallback::BadwordsDelCallback(), XOPBase::DoAdd(), CommandCSAKick::DoAdd(), CommandBSBadwords::DoAdd(), CommandCSEnforce::DoBans(), XOPBase::DoClear(), CommandCSAKick::DoClear(), CommandBSBadwords::DoClear(), XOPBase::DoDel(), CommandCSAKick::DoDel(), CommandCSAccess::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandCSAKick::DoEnforce(), CommandMSSet::DoLimit(), CommandCSEnforce::DoLimit(), XOPBase::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandCSEnforce::DoRegOnly(), CommandCSLevels::DoReset(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandCSMode::DoSet(), CommandCSLevels::DoSet(), CommandCSEnforce::DoSSLOnly(), CommandCSKick::Execute(), CommandCSBan::Execute(), CommandBSSetDontKickVoices::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSUnassign::Execute(), CommandBSAssign::Execute(), NSAJoin::OnNickIdentify(), BSKick::OnPrivmsg(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::ChanServ::Info::OnRequest(), WebCPanel::ChanServ::Drop::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), operator<(), operator<=(), operator>(), operator>=(), MyMemoServService::Send(), and CommandCSTopic::Set().
| const ChanAccess * AccessGroup::Highest | ( | ) | const |
Get the "highest" access entry from this group of entries. The highest entry is determined by the entry that has the privilege with the highest rank (see Privilege::rank).
Definition at line 277 of file access.cpp.
References PrivilegeManager::GetPrivileges().
Referenced by XOPBase::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoDel(), CommandCSAccess::DoDel(), and WebCPanel::ChanServ::Access::OnRequest().
| bool AccessGroup::operator< | ( | const AccessGroup & | other | ) | const |
Definition at line 314 of file access.cpp.
References founder, PrivilegeManager::GetPrivileges(), HasPriv(), and super_admin.
| bool AccessGroup::operator<= | ( | const AccessGroup & | other | ) | const |
Definition at line 368 of file access.cpp.
References founder, PrivilegeManager::GetPrivileges(), HasPriv(), and super_admin.
| bool AccessGroup::operator> | ( | const AccessGroup & | other | ) | const |
Definition at line 287 of file access.cpp.
References founder, PrivilegeManager::GetPrivileges(), HasPriv(), and super_admin.
| bool AccessGroup::operator>= | ( | const AccessGroup & | other | ) | const |
Definition at line 341 of file access.cpp.
References founder, PrivilegeManager::GetPrivileges(), HasPriv(), and super_admin.
| const ChannelInfo* AccessGroup::ci |
Definition at line 129 of file access.h.
Referenced by ChannelInfo::AccessFor(), AccessGroup(), and HasPriv().
| bool AccessGroup::founder |
Definition at line 133 of file access.h.
Referenced by ChannelInfo::AccessFor(), AccessGroup(), XOPBase::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoDel(), CommandCSAccess::DoDel(), CommandCSStatus::Execute(), HasPriv(), WebCPanel::ChanServ::Drop::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), operator<(), operator<=(), operator>(), and operator>=().
| const NickCore* AccessGroup::nc |
Definition at line 131 of file access.h.
Referenced by ChannelInfo::AccessFor(), and AccessGroup().
Definition at line 133 of file access.h.
Referenced by ChannelInfo::AccessFor(), AccessGroup(), CommandCSStatus::Execute(), HasPriv(), operator<(), operator<=(), operator>(), and operator>=().
1.7.1