InspIRCd  3.0
Public Member Functions | List of all members
ModResult Class Reference

#include <modules.h>

Public Member Functions

 ModResult ()
 
 ModResult (char res)
 
bool operator== (const ModResult &res) const
 
bool operator!= (const ModResult &res) const
 
bool operator! () const
 
bool check (bool def) const
 
ModResult operator+ (const ModResult &res) const
 

Detailed Description

Represents the result of a module event.

Constructor & Destructor Documentation

◆ ModResult() [1/2]

ModResult::ModResult ( )
inline

Creates a new instance of the ModResult class which defaults to MOD_RES_PASSTHRU.

◆ ModResult() [2/2]

ModResult::ModResult ( char  res)
inlineexplicit

Creates a new instance of the ModResult class with the specified value.

Member Function Documentation

◆ check()

bool ModResult::check ( bool  def) const
inline

Checks whether the result is an MOD_RES_ALLOW or MOD_RES_PASSTHRU when the default is to allow.

◆ operator!()

bool ModResult::operator! ( ) const
inline

Determines whether a non-MOD_RES_PASSTHRU result has been set.

◆ operator!=()

bool ModResult::operator!= ( const ModResult res) const
inline

Determines whether this ModResult has.a different value to res

◆ operator==()

bool ModResult::operator== ( const ModResult res) const
inline

Determines whether this ModResult has.the same value as res


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