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

Snomask Class Reference

#include <snomasks.h>

Inheritance diagram for Snomask:

Inheritance graph
[legend]
Collaboration diagram for Snomask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Snomask (InspIRCd *Instance, char snomask, const std::string &description)
 Create a new Snomask.
void SendMessage (const std::string &message)
 Sends a message to all opers with this snomask.
void Flush ()
 Sends out a pending message.

Public Attributes

char MySnomask
std::string Description
std::string LastMessage
unsigned int Count

Private Attributes

InspIRCdServerInstance

Detailed Description

Definition at line 17 of file snomasks.h.


Constructor & Destructor Documentation

Snomask::Snomask InspIRCd Instance,
char  snomask,
const std::string description
[inline]
 

Create a new Snomask.

Definition at line 30 of file snomasks.h.


Member Function Documentation

void Snomask::Flush  ) 
 

Sends out a pending message.

Definition at line 127 of file snomasks.cpp.

References UserManager::all_opers, Count, DEFAULT, Description, FOREACH_RESULT, I_OnSendSnotice, IS_LOCAL, User::IsModeSet(), User::IsNoticeMaskSet(), LastMessage, LogManager::Log(), InspIRCd::Logs, MySnomask, User::nick, User::quitting, ServerInstance, InspIRCd::Users, and User::WriteServ().

Referenced by SendMessage().

void Snomask::SendMessage const std::string message  ) 
 

Sends a message to all opers with this snomask.

Definition at line 114 of file snomasks.cpp.

References Count, Flush(), and LastMessage.


Member Data Documentation

unsigned int Snomask::Count
 

Definition at line 26 of file snomasks.h.

Referenced by Flush(), and SendMessage().

std::string Snomask::Description
 

Definition at line 24 of file snomasks.h.

Referenced by Flush().

std::string Snomask::LastMessage
 

Definition at line 25 of file snomasks.h.

Referenced by Flush(), and SendMessage().

char Snomask::MySnomask
 

Definition at line 23 of file snomasks.h.

Referenced by Flush().

InspIRCd* Snomask::ServerInstance [private]
 

Definition at line 20 of file snomasks.h.

Referenced by Flush().


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