]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.h
Generate the ssl_cert metadata before bursting a connecting user.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.h
index 60f819e9c21bf0f6214127aef25bbd1ab83396de..ec97e73be56eacbd438acad6de7f1964596a4e75 100644 (file)
@@ -26,6 +26,7 @@
 #include "inspircd.h"
 #include "event.h"
 #include "modules/dns.h"
+#include "modules/ssl.h"
 #include "modules/stats.h"
 #include "servercommand.h"
 #include "commands.h"
@@ -40,8 +41,8 @@
  * Failure to document your protocol changes will result in a painfully
  * painful death by pain. You have been warned.
  */
-const long ProtocolVersion = 1205;
-const long MinCompatProtocol = 1202;
+const unsigned int ProtocolVersion = 1205;
+const unsigned int MinCompatProtocol = 1202;
 
 /** Forward declarations
  */
@@ -80,9 +81,15 @@ class ModuleSpanningTree
         */
        Events::ModuleEventProvider eventprov;
 
+       /** API for accessing user SSL certificates. */
+       UserCertificateAPI sslapi;
+
  public:
        dynamic_reference<DNS::Manager> DNS;
 
+       /** Event provider for message tags. */
+       Events::ModuleEventProvider tagevprov;
+
        ServerCommandManager CmdManager;
 
        /** Set to true if inside a spanningtree call, to prevent sending
@@ -146,7 +153,7 @@ class ModuleSpanningTree
         **/
 
        ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) CXX11_OVERRIDE;
-       void OnPostCommand(Command*, const CommandBase::Params& parameters, LocalUser* user, CmdResult result) CXX11_OVERRIDE;
+       void OnPostCommand(Command*, const CommandBase::Params& parameters, LocalUser* user, CmdResult result, bool loop) CXX11_OVERRIDE;
        void OnUserConnect(LocalUser* source) CXX11_OVERRIDE;
        void OnUserInvite(User* source, User* dest, Channel* channel, time_t timeout, unsigned int notifyrank, CUList& notifyexcepts) CXX11_OVERRIDE;
        ModResult OnPreTopicChange(User* user, Channel* chan, const std::string& topic) CXX11_OVERRIDE;