InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | Public Attributes | List of all members
ModResult Struct Reference

#include <modules.h>

Public Member Functions

 ModResult (int r)
bool operator== (const ModResult &r) const
bool operator!= (const ModResult &r) const
bool operator! () const
bool check (bool def) const
ModResult operator+ (const ModResult &r) const

Public Attributes

int res

Detailed Description

Used to represent an allow/deny module result. Not constructed as an enum because it reverses the value logic of some functions; the compiler will inline accesses to have the same efficiency as integer operations.

Member Function Documentation

ModResult ModResult::operator+ ( const ModResult r) const

Merges two results, preferring ALLOW to DENY

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