]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.h
m_spanningtree Try FindServerID() first if the prefix looks like a sid in TreeSocket...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.h
index 13c743f731387cd4ecdabd8851cd981c85120643..3e02ce93f8ba119ae18a47a61e26049160e8df5b 100644 (file)
@@ -24,6 +24,7 @@
 #pragma once
 
 #include "inspircd.h"
+#include "event.h"
 #include "modules/dns.h"
 #include "servercommand.h"
 #include "commands.h"
@@ -43,7 +44,6 @@ const long MinCompatProtocol = 1202;
 
 /** Forward declarations
  */
-class SpanningTreeCommands;
 class SpanningTreeUtilities;
 class CacheRefreshTimer;
 class TreeServer;
@@ -62,7 +62,7 @@ class ModuleSpanningTree : public Module
 
        /** Server to server only commands, not registered in the core
         */
-       SpanningTreeCommands* commands;
+       SpanningTreeCommands commands;
 
        /** Next membership id assigned when a local user joins a channel
         */
@@ -72,6 +72,10 @@ class ModuleSpanningTree : public Module
         */
        SpanningTreeProtocolInterface protocolinterface;
 
+       /** Event provider for our events
+        */
+       Events::ModuleEventProvider eventprov;
+
  public:
        dynamic_reference<DNS::Manager> DNS;
 
@@ -135,6 +139,8 @@ class ModuleSpanningTree : public Module
         */
        static std::string TimeToStr(time_t secs);
 
+       const Events::ModuleEventProvider& GetEventProvider() const { return eventprov; }
+
        /**
         ** *** MODULE EVENTS ***
         **/
@@ -142,7 +148,7 @@ class ModuleSpanningTree : public Module
        ModResult OnPreCommand(std::string &command, std::vector<std::string>& parameters, LocalUser *user, bool validated, const std::string &original_line) CXX11_OVERRIDE;
        void OnPostCommand(Command*, const std::vector<std::string>& parameters, LocalUser* user, CmdResult result, const std::string& original_line) CXX11_OVERRIDE;
        void OnUserConnect(LocalUser* source) CXX11_OVERRIDE;
-       void OnUserInvite(User* source,User* dest,Channel* channel, time_t) CXX11_OVERRIDE;
+       void OnUserInvite(User* source, User* dest, Channel* channel, time_t timeout, unsigned int notifyrank, CUList& notifyexcepts) CXX11_OVERRIDE;
        void OnPostTopicChange(User* user, Channel* chan, const std::string &topic) CXX11_OVERRIDE;
        void OnUserMessage(User* user, void* dest, int target_type, const std::string& text, char status, const CUList& exempt_list, MessageType msgtype) CXX11_OVERRIDE;
        void OnBackgroundTimer(time_t curtime) CXX11_OVERRIDE;