]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sslmodes.cpp
Tidyup
[user/henk/code/inspircd.git] / src / modules / m_sslmodes.cpp
index bf132b0f4ddbc7b4c7421c8dd0e84649989141a6..53542515ab65f4027674e078838a37aaa871d88e 100644 (file)
@@ -23,6 +23,8 @@
 
 static char* dummy;
 
+/** Handle channel mode +z
+ */
 class SSLMode : public ModeHandler
 {
  public:
@@ -87,7 +89,7 @@ class ModuleSSLModes : public Module
                List[I_OnUserPreJoin] = 1;
        }
 
-       virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
+       virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs)
        {
                if(chan && chan->IsModeSet('z'))
                {
@@ -109,12 +111,13 @@ class ModuleSSLModes : public Module
 
        virtual ~ModuleSSLModes()
        {
+               ServerInstance->Modes->DelMode(sslm);
                DELETE(sslm);
        }
        
        virtual Version GetVersion()
        {
-               return Version(1, 0, 0, 0, VF_STATIC | VF_VENDOR);
+               return Version(1, 1, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
        }
 };