]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Works with the m_testclient test program/suite!
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index 33e41355cfd7b37f8ac22cbae717e80a31974ba3..ab13708ea583d181cd03c5b2dfc9e6179b2d4590 100644 (file)
@@ -58,7 +58,9 @@ typedef unsigned int uint32_t;
 typedef uint32_t word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */
 typedef unsigned char byte;
 
-struct xMD5Context {
+class xMD5Context : public classbase
+{
+ public:
        word32 buf[4];
        word32 bytes[2];
        word32 in[16];
@@ -430,7 +432,7 @@ class ModuleCloaking : public Module
                // SAMODE in unreal. Note that to the user it will appear as if they set
                // the mode on themselves.
                
-               char* modes[2];                 // only two parameters
+               const char* modes[2];           // only two parameters
                modes[0] = user->nick;          // first parameter is the nick
                modes[1] = "+x";                // second parameter is the mode
                Srv->SendMode(modes,2,user);    // send these, forming the command "MODE <nick> +x"