]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Fix m_testcommand which tries to use an undefined pointer as ServerInstance
[user/henk/code/inspircd.git] / include / users.h
index 719af227177ed9f5ecacbfe8dd310b442d67b800..c34b60693f32558a1a105084e8794c435d2e004f 100644 (file)
@@ -69,7 +69,7 @@ class UserResolver : public Resolver
  public:
        UserResolver(InspIRCd* Instance, userrec* user, std::string to_resolve, QueryType qt);
 
-       void OnLookupComplete(const std::string &result);
+       void OnLookupComplete(const std::string &result, unsigned int ttl);
        void OnError(ResolverError e, const std::string &errormessage);
 };
 
@@ -231,6 +231,12 @@ class userrec : public connection
        char* cached_hostip;
        char* cached_makehost;
        char* cached_fullrealhost;
+
+       /** When we erase the user (in the destructor),
+        * we call this method to subtract one from all
+        * mode characters this user is making use of.
+        */
+       void DecrementModes();
  public:
        /** Resolvers for looking up this users IP address
         * This will occur if and when res_reverse completes.