InspIRCd  4.0
Public Member Functions | Public Attributes | List of all members
Modes::Change Struct Reference

#include <modechange.h>

Public Member Functions

 Change (ModeHandler *handler, bool add, const std::string &parameter="")
 
 Change (ModeHandler *handler, bool add, const std::string &parameter, const std::string &setby, time_t setat)
 

Public Attributes

bool adding
 
ModeHandlermh
 
std::string param
 
std::optional< std::string > set_by
 
std::optional< time_t > set_at
 

Detailed Description

A single mode to be changed

Constructor & Destructor Documentation

◆ Change() [1/2]

Modes::Change::Change ( ModeHandler handler,
bool  add,
const std::string &  parameter = "" 
)
inline
Parameters
handlerMode handler
addTrue if this mode is being set, false if removed
parameterMode parameter

◆ Change() [2/2]

Modes::Change::Change ( ModeHandler handler,
bool  add,
const std::string &  parameter,
const std::string &  setby,
time_t  setat 
)
inline
Parameters
handlerMode handler
addTrue if this mode is being set, false if removed
parameterMode parameter
setbyWho the mode change was originally performed by.
setatWhen the mode change was originally made.

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