]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Report invalid command name when invalid command is given in negotiation phase
[user/henk/code/inspircd.git] / include / users.h
index 9a4057f883b181cd2fba4e942c8025f7a9374649..1dc0aa43e60e3bb87b093679a8566b22c4e4b508 100644 (file)
@@ -65,8 +65,6 @@ class Invited : public classbase
         irc::string channel;
 };
 
-
-
 class InspIRCd;
 
 /** Derived from Resolver, and performs user forward/reverse lookups.
@@ -171,6 +169,10 @@ class userrec : public connection
         * channels are removed from this list.
         */
        InvitedList invites;
+
+       /** Number of channels this user is currently on
+        */
+       unsigned int ChannelCount;
  public:
        /** Resolvers for looking up this users IP address
         * This will occur if and when res_reverse completes.
@@ -718,6 +720,12 @@ class userrec : public connection
         */
        int CountChannels();
 
+       /** Modify the number of channels this user is on (used by CountChannels).
+        * Pass a positive number to increment the counter, or a negative number
+        * to decrement it.
+        */
+       void ModChannelCount(int n);
+
        /** Send a notice to all local users from this user
         * @param text The text format string to send
         * @param ... Format arguments
@@ -816,7 +824,7 @@ namespace irc
 
                /** Called every hour by the core to remove expired entries
                 */
-               void MaintainWhoWas(time_t TIME);
+               void MaintainWhoWas(InspIRCd* ServerInstance, time_t TIME);
        };
 };