- private:
- InspIRCd *ServerInstance;
- public:
- char MySnomask;
- std::string Description;
-// std::string LastMessage;
-// unsigned int Count;
+ /** Description of this snomask, e.g.: OPER, ANNOUNCEMENT, XLINE
+ */
+ std::string Description;
+
+ /** Information about the last sent message,
+ * used for sending "last message repeated X times" messages
+ */
+ std::string LastMessage;
+ char LastLetter;
+ unsigned int Count;
+
+ /** Log and send a message to all opers who have the given snomask set
+ * @param letter The target users of this message
+ * @param desc The description of this snomask, will be prepended to the message
+ * @param msg The message to send
+ */
+ static void Send(char letter, const std::string& desc, const std::string& msg);