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

#include <isupportmanager.h>

Public Member Functions

void Build ()
 
const std::vector< Numeric::Numeric > & GetLines () const
 
void SendTo (LocalUser *user)
 

Detailed Description

This class manages the generation and transmission of ISUPPORT.

Member Function Documentation

◆ Build()

void ISupportManager::Build ( )

(Re)build the ISUPPORT vector. Called by the core on boot after all modules have been loaded, and every time when a module is loaded or unloaded. Calls the On005Numeric hook, letting modules manipulate the ISUPPORT tokens.

This is currently the neatest way we can build the initial ISUPPORT map. In the future we can use an initializer list here.

◆ GetLines()

const std::vector<Numeric::Numeric>& ISupportManager::GetLines ( ) const
inline

Returns the cached std::vector of ISUPPORT lines.

Returns
A list of Numeric::Numeric objects prepared for sending to users

◆ SendTo()

void ISupportManager::SendTo ( LocalUser user)

Send the 005 numerics (ISUPPORT) to a user.

Parameters
userThe user to send the ISUPPORT numerics to

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