X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_cloaking.cpp;h=ab13708ea583d181cd03c5b2dfc9e6179b2d4590;hb=1484a054870bdfe94346057053d5c8e48a708232;hp=33e41355cfd7b37f8ac22cbae717e80a31974ba3;hpb=d8aba7e60bc276d12f209466fa308aa56fa736e5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 33e41355c..ab13708ea 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -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 +x"