]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Annotations
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index f26e16e0e2edb7cb25a204ef0cba60f88d08c138..29d26a9ec7ab297f90af2e54d0f4ae226d95d9bf 100644 (file)
@@ -60,6 +60,8 @@ typedef unsigned int uint32_t;
 typedef uint32_t word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */
 typedef unsigned char byte;
 
+/** An MD5 context, used by m_cloaking
+ */
 class xMD5Context : public classbase
 {
  public:
@@ -68,6 +70,8 @@ class xMD5Context : public classbase
        word32 in[16];
 };
 
+/** Handles user mode +x
+ */
 class CloakUser : public ModeHandler
 {
        
@@ -434,23 +438,8 @@ class ModuleCloaking : public Module
 
        void Implements(char* List)
        {
-               List[I_OnRehash] = List[I_OnUserConnect] = 1;
+               List[I_OnRehash] = 1;
        }
-
-       virtual void OnUserConnect(userrec* user)
-       {
-               // Heres the weird bit. When a user connects we must set +x on them, so
-               // we're going to use the SendMode method of the Server class to send
-               // the mode to the client. This is basically the same as sending an
-               // SAMODE in unreal. Note that to the user it will appear as if they set
-               // the mode on themselves.
-               
-               const char* modes[2];           // only two parameters
-               modes[0] = user->nick;          // first parameter is the nick
-               modes[1] = "+x";                // second parameter is the mode
-               ServerInstance->SendMode(modes,2,user); // send these, forming the command "MODE <nick> +x"
-       }
-
 };
 
 // stuff down here is the module-factory stuff. For basic modules you can ignore this.