+class Snomask : public Extensible
+{
+ private:
+ InspIRCd *ServerInstance;
+
+ public:
+ char MySnomask;
+ std::string Description;
+ std::string LastMessage;
+ unsigned int Count;
+ bool LocalOnly; // whether or not messages are netwide
+
+ /** Create a new Snomask
+ */
+ Snomask(InspIRCd* Instance, char snomask, const std::string &description, bool local) : ServerInstance(Instance), MySnomask(snomask), Description(description), LastMessage(""), Count(0), LocalOnly(local)
+ {
+ }
+
+ /** Sends a message to all opers with this snomask.
+ */
+ void SendMessage(const std::string &message);
+
+ /** Sends out a pending message
+ */
+ void Flush();
+};