summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-05 15:54:37 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-05 15:54:37 +0000
commit1c774ea51f6799ca18a1028486f2812fe487ebdc (patch)
treec5711530e90e5f2bc8c9a4909c15b71524ffcbd3 /include
parent13a4f598b7e4ad56b5dc654d8f4b50b8a9851673 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/snomasks.h14
1 files changed, 10 insertions, 4 deletions
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<char, std::string> SnoList;
+typedef std::map<char, Snomask *> 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,