]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/snomasks.h
OnRawMode event makes a return: This was removed post 1.0 because it was incredibly...
[user/henk/code/inspircd.git] / include / snomasks.h
index e8115f32ae13adc4a227d89becd9bb9a78b3abeb..a6a1f2d82a5e52b8c90453673239e7aa094537be 100644 (file)
 
 class Snomask
 {
-       private:
-               InspIRCd *ServerInstance;
-       public:
-               char MySnomask;
-               std::string Description;
-//             std::string LastMessage;
-//             unsigned int Count;
+ private:
+       InspIRCd *ServerInstance;
+
+ public:
+       char MySnomask;
+       std::string Description;
+       std::string LastMessage;
+       unsigned int Count;
 
        /** Create a new Snomask
         */
        Snomask(InspIRCd* Instance, char snomask, const std::string &description)
        {
+               ServerInstance = Instance;
                MySnomask = snomask;
                Description = description;
        }
 
-       
+       /** Sends a message to all opers with this snomask.
+        */
+       void SendMessage(const std::string &message);
+
+       /** Sends out a pending message
+        */
+       void Flush();
 };
 
 /** 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,