Public Member Functions | Data Fields

AccessGroup Class Reference

#include <access.h>

Collaboration diagram for AccessGroup:
Collaboration graph
[legend]

Public Member Functions

 AccessGroup ()
bool HasPriv (const Anope::string &priv) const
const ChanAccessHighest () 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 ChannelInfoci
const NickCorenc
bool super_admin
bool founder

Detailed Description

Definition at line 125 of file access.h.


Constructor & Destructor Documentation

AccessGroup::AccessGroup (  ) 

Definition at line 248 of file access.cpp.

References ci, founder, nc, and super_admin.


Member Function Documentation

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.

Parameters:
priv The privilege
Returns:
true if any entry has the given 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).

Returns:
The "highest" entry

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.


Field Documentation

Definition at line 129 of file access.h.

Referenced by ChannelInfo::AccessFor(), AccessGroup(), and HasPriv().

Definition at line 131 of file access.h.

Referenced by ChannelInfo::AccessFor(), and AccessGroup().


The documentation for this class was generated from the following files: