Anope IRC Services  Version 2.0
Public Member Functions | Data Fields
AccessGroup Class Reference

#include <access.h>

Inheritance diagram for AccessGroup:
Inheritance graph
[legend]
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
 
ChanAccess::Path path
 
const NickCorenc
 
bool super_admin
 
bool founder
 

Detailed Description

Definition at line 140 of file access.h.

Constructor & Destructor Documentation

AccessGroup::AccessGroup ( )

Definition at line 351 of file access.cpp.

References 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
privThe privilege
Returns
true if any entry has the given privilege

Definition at line 384 of file access.cpp.

References ACCESS_INVALID, EVENT_ALLOW, EVENT_CONTINUE, Anope::string::find(), FOREACH_RESULT, founder, and super_admin.

Referenced by BadwordsDelCallback::BadwordsDelCallback(), CommandCSMode::CanSet(), CommandBSKickBase::CheckArguments(), CommandCSAKick::DoAdd(), CommandCSXOP::DoAdd(), CommandBSBadwords::DoAdd(), CommandCSEnforce::DoBans(), CommandBSBadwords::DoClear(), CommandCSAKick::DoClear(), CommandCSXOP::DoClear(), CommandCSAKick::DoDel(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandCSAKick::DoEnforce(), CommandMSSet::DoLimit(), CommandCSEnforce::DoLimit(), CommandBSBadwords::DoList(), CommandCSXOP::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandCSEnforce::DoRegOnly(), CommandCSLevels::DoReset(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandCSMode::DoSet(), CommandCSLevels::DoSet(), CommandCSEnforce::DoSSLOnly(), CommandBSAssign::Execute(), CommandCSKick::Execute(), CommandCSBan::Execute(), CommandBSSetBanExpire::Execute(), CommandBSUnassign::Execute(), CommandCSModes::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSSetDontKickVoices::Execute(), StatusUpdate::OnAccessAdd(), StatusUpdate::OnAccessDel(), BSAssign::OnInvite(), Fantasy::OnPrivmsg(), BSKick::OnPrivmsg(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::ChanServ::Drop::OnRequest(), WebCPanel::ChanServ::Modes::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), NSAJoin::OnUserLogin(), operator<(), operator>(), CommandBSKickBase::Process(), MemoServCore::Send(), CommandCSTopic::Set(), and CommandCSUp::SetModes().

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 416 of file access.cpp.

Referenced by CommandCSAccess::DoAdd(), CommandCSXOP::DoAdd(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandCSFlags::DoModify(), and WebCPanel::ChanServ::Access::OnRequest().

bool AccessGroup::operator< ( const AccessGroup other) const

Definition at line 451 of file access.cpp.

References founder, PrivilegeManager::GetPrivileges(), HasPriv(), name, and super_admin.

bool AccessGroup::operator<= ( const AccessGroup other) const

Definition at line 482 of file access.cpp.

bool AccessGroup::operator> ( const AccessGroup other) const

Definition at line 425 of file access.cpp.

References founder, PrivilegeManager::GetPrivileges(), HasPriv(), name, and super_admin.

bool AccessGroup::operator>= ( const AccessGroup other) const

Definition at line 477 of file access.cpp.

Field Documentation

const ChannelInfo* AccessGroup::ci

Definition at line 144 of file access.h.

Referenced by ChannelInfo::AccessFor(), BSAssign::OnInvite(), and Fantasy::OnPrivmsg().

bool AccessGroup::founder
const NickCore* AccessGroup::nc

Definition at line 148 of file access.h.

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

ChanAccess::Path AccessGroup::path

Definition at line 146 of file access.h.

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

bool AccessGroup::super_admin

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