The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ServerLimits Class Reference

Defines the server's length limits on various length-limited items such as topics, nicknames, channel names etc. More...

#include <configreader.h>

Inheritance diagram for ServerLimits:

Inheritance graph
[legend]
Collaboration diagram for ServerLimits:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ServerLimits ()
 Creating the class initialises it to the defaults as in 1.1's .
void Finalise ()
 Finalises the settings by adding one.

Public Attributes

size_t NickMax
 Maximum nickname length.
size_t ChanMax
 Maximum channel length.
size_t MaxModes
 Maximum number of modes per line.
size_t IdentMax
 Maximum length of ident, not including ~ etc.
size_t MaxQuit
 Maximum length of a quit message.
size_t MaxTopic
 Maximum topic length.
size_t MaxKick
 Maximum kick message length.
size_t MaxGecos
 Maximum GECOS (real name) length.
size_t MaxAway
 Maximum away message length.

Detailed Description

Defines the server's length limits on various length-limited items such as topics, nicknames, channel names etc.

Definition at line 257 of file configreader.h.


Constructor & Destructor Documentation

ServerLimits::ServerLimits  )  [inline]
 

Creating the class initialises it to the defaults as in 1.1's .

/configure script. Reading other values from the config will change these values.

Definition at line 283 of file configreader.h.


Member Function Documentation

void ServerLimits::Finalise  )  [inline]
 

Finalises the settings by adding one.

This allows for them to be used as-is without a 'value+1' when using the std::string assignment methods etc.

Definition at line 290 of file configreader.h.

References ChanMax, IdentMax, MaxAway, MaxGecos, MaxKick, MaxQuit, MaxTopic, and NickMax.

Referenced by ServerConfig::Read().


Member Data Documentation

size_t ServerLimits::ChanMax
 

Maximum channel length.

Definition at line 263 of file configreader.h.

Referenced by BanRedirect::BeforeMode(), Channel::Channel(), Finalise(), CommandSajoin::Handle(), Channel::JoinUser(), Redirect::OnModeChange(), ModuleConnJoin::OnPostConnect(), ModuleOperjoin::OnPostOper(), ModuleDenyChannels::OnRehash(), ModuleDenyChannels::OnUserPreJoin(), and TreeSocket::SendCapabilities().

size_t ServerLimits::IdentMax
 

Maximum length of ident, not including ~ etc.

Definition at line 267 of file configreader.h.

Referenced by User::ChangeIdent(), Finalise(), CommandSetident::Handle(), CommandChgident::Handle(), ModuleIdent::OnCheckReady(), ModuleIdent::OnUserRegister(), IdentRequestSocket::ReadResponse(), and TreeSocket::SendCapabilities().

size_t ServerLimits::MaxAway
 

Maximum away message length.

Definition at line 277 of file configreader.h.

Referenced by InspIRCd::BuildISupport(), Finalise(), and TreeSocket::SendCapabilities().

size_t ServerLimits::MaxGecos
 

Maximum GECOS (real name) length.

Definition at line 275 of file configreader.h.

Referenced by User::ChangeName(), Finalise(), CommandSetname::Handle(), CommandChgname::Handle(), and TreeSocket::SendCapabilities().

size_t ServerLimits::MaxKick
 

Maximum kick message length.

Definition at line 273 of file configreader.h.

Referenced by InspIRCd::BuildISupport(), Finalise(), and TreeSocket::SendCapabilities().

size_t ServerLimits::MaxModes
 

Maximum number of modes per line.

Definition at line 265 of file configreader.h.

Referenced by InspIRCd::BuildISupport(), irc::modestacker::GetStackedLine(), ModeParser::Process(), TreeSocket::SendCapabilities(), and TreeSocket::SendFJoins().

size_t ServerLimits::MaxQuit
 

Maximum length of a quit message.

Definition at line 269 of file configreader.h.

Referenced by CullList::Apply(), Finalise(), and TreeSocket::SendCapabilities().

size_t ServerLimits::MaxTopic
 

Maximum topic length.

Definition at line 271 of file configreader.h.

Referenced by InspIRCd::BuildISupport(), Finalise(), TreeSocket::ForceTopic(), TreeSocket::SendCapabilities(), and Channel::SetTopic().

size_t ServerLimits::NickMax
 

Maximum nickname length.

Definition at line 261 of file configreader.h.

Referenced by CommandWatch::add_watch(), UserManager::AddUser(), InspIRCd::BuildISupport(), Finalise(), CommandSanick::Handle(), CommandNicklock::Handle(), CommandWatch::remove_watch(), and TreeSocket::SendCapabilities().


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