Anope IRC Services  Version 2.0
Public Member Functions | Data Fields
Privilege Struct Reference

#include <access.h>

Collaboration diagram for Privilege:
Collaboration graph

Public Member Functions

 Privilege (const Anope::string &name, const Anope::string &desc, int rank)
bool operator== (const Privilege &other) const

Data Fields

Anope::string name
Anope::string desc
int rank

Detailed Description

Definition at line 32 of file access.h.

Constructor & Destructor Documentation

◆ Privilege()

Privilege::Privilege ( const Anope::string name,
const Anope::string desc,
int  rank 

Definition at line 63 of file access.cpp.

References desc, descriptions, Anope::string::empty(), Anope::string::equals_ci(), and name.

Member Function Documentation

◆ operator==()

bool Privilege::operator== ( const Privilege other) const

Definition at line 71 of file access.cpp.

References Anope::string::equals_ci(), name, and PrivilegeManager::Privileges.

Field Documentation

◆ desc

Anope::string Privilege::desc

Definition at line 35 of file access.h.

Referenced by CommandCSFlags::OnHelp(), CommandCSLevels::OnHelp(), and Privilege().

◆ name

Anope::string Privilege::name

◆ rank

int Privilege::rank

Definition at line 37 of file access.h.

Referenced by PrivilegeManager::AddPrivilege().

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