]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Converted more stuff to 'Implements' system
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index 7bcfb0af273a86f541d385466bea8746e77db3a8..17a8ddefe896e80415ab70fbb5b65845e4608b6d 100644 (file)
@@ -256,7 +256,7 @@ class ModuleCloaking : public Module
                int i = 0;
                unsigned char bytes[16];
                char hash[MAXBUF];
-               strcpy(hash,"");
+               *hash = 0;
                MyMD5((char*)bytes,src,strlen(src));
                for (i = 0; i < 16; i++)
                {
@@ -303,6 +303,11 @@ class ModuleCloaking : public Module
                // listed in /MODULES
                return Version(1,0,0,1,VF_STATIC|VF_VENDOR);
        }
+
+       void Implements(char* List)
+       {
+               List[I_OnExtendedMode] = List[I_OnUserConnect] = 1;
+       }
        
        virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
        {