From 1c774ea51f6799ca18a1028486f2812fe487ebdc Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 5 Jan 2008 15:54:37 +0000 Subject: Snomask stacking: not yet working (crashes), and not quite finished git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8637 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/snomasks.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/snomasks.h b/include/snomasks.h index f7602f8fc..4545c1ed7 100644 --- a/include/snomasks.h +++ b/include/snomasks.h @@ -24,11 +24,15 @@ class Snomask { private: InspIRCd *ServerInstance; + + /** Sends out a pending message + */ + void Flush(); public: char MySnomask; std::string Description; -// std::string LastMessage; -// unsigned int Count; + std::string LastMessage; + unsigned int Count; /** Create a new Snomask */ @@ -38,12 +42,14 @@ class Snomask Description = description; } - + /** Sends a message to all opers with this snomask. + */ + void SendMessage(const std::string &message); }; /** A list of snomasks which are valid, and their descriptive texts */ -typedef std::map SnoList; +typedef std::map SnoList; /** Snomask manager handles routing of SNOMASK (usermode +n) messages to opers. * Modules and the core can enable and disable snomask characters. If they do, -- cgit v1.2.3