summaryrefslogtreecommitdiff
path: root/include/clientprotocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clientprotocol.h')
-rw-r--r--include/clientprotocol.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 95683dc8f..6ecfbc709 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -515,6 +515,16 @@ class ClientProtocol::Event
void GetMessagesForUser(LocalUser* user, MessageList& messagelist);
};
+class ClientProtocol::MessageTagEvent
+ : public Events::ModuleEventProvider
+{
+ public:
+ MessageTagEvent(Module* mod)
+ : ModuleEventProvider(mod, "event/messagetag")
+ {
+ }
+};
+
/** Base class for message tag providers.
* All message tags belong to a message tag provider. Message tag providers can populate messages
* with tags before the message is sent and they have the job of determining whether a user should
@@ -667,7 +677,8 @@ struct ClientProtocol::RFCEvents
*/
class CoreExport ClientProtocol::Serializer : public DataProvider
{
- Events::ModuleEventProvider evprov;
+ private:
+ ClientProtocol::MessageTagEvent evprov;
/** Make a white list containing which tags a user should get.
* @param user User in question.