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

CommandSilence Class Reference

Inheritance diagram for CommandSilence:

Inheritance graph
[legend]
Collaboration diagram for CommandSilence:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandSilence (InspIRCd *Instance, unsigned int &max)
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 Handle the command from a user.
int CompilePattern (const char *pattern)
std::string DecompPattern (const int pattern)

Private Attributes

unsigned int & maxsilence

Detailed Description

Definition at line 88 of file m_silence.cpp.


Constructor & Destructor Documentation

CommandSilence::CommandSilence InspIRCd Instance,
unsigned int &  max
[inline]
 

Definition at line 92 of file m_silence.cpp.

References Command::source, Command::syntax, TR_END, TR_TEXT, and TRANSLATE3.


Member Function Documentation

int CommandSilence::CompilePattern const char *  pattern  )  [inline]
 

Definition at line 208 of file m_silence.cpp.

References SILENCE_ALL, SILENCE_CHANNEL, SILENCE_CNOTICE, SILENCE_EXCLUDE, SILENCE_INVITE, SILENCE_NOTICE, and SILENCE_PRIVATE.

Referenced by Handle().

std::string CommandSilence::DecompPattern const int  pattern  )  [inline]
 

Definition at line 245 of file m_silence.cpp.

References SILENCE_ALL, SILENCE_CHANNEL, SILENCE_CNOTICE, SILENCE_EXCLUDE, SILENCE_INVITE, SILENCE_NOTICE, and SILENCE_PRIVATE.

Referenced by Handle().

CmdResult CommandSilence::Handle const std::vector< std::string > &  parameters,
User user
[inline, virtual]
 

Handle the command from a user.

Parameters:
parameters The parameters for the command.
user The user who issued the command.
Returns:
Return CMD_SUCCESS on success, or CMD_FAILURE on failure. If the command succeeds but should remain local to this server, return CMD_LOCALONLY.

Implements Command.

Definition at line 99 of file m_silence.cpp.

References ModeParser::CleanMask(), CMD_FAILURE, CMD_LOCALONLY, CMD_SUCCESS, CompilePattern(), DecompPattern(), Extensible::Extend(), Extensible::GetExt(), maxsilence, User::nick, Extensible::Shrink(), SILENCE_EXCLUDE, and User::WriteNumeric().


Member Data Documentation

unsigned int& CommandSilence::maxsilence [private]
 

Definition at line 90 of file m_silence.cpp.

Referenced by Handle().


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