]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Fix my whoopsies
[user/henk/code/inspircd.git] / include / users.h
index 8a7fa1aeb602800ee715ed29762efc6259317ee3..d24a93fcaf80d2f5523385fa245e2e66b7aa4d78 100644 (file)
@@ -305,11 +305,11 @@ class userrec : public connection
         */
        int flood;
        
-       /** Number of seconds this user is given to send USER/NICK
-        * If they do not send their details in this time limit they
-        * will be disconnected
+       /** Timestamp of current time + connection class timeout.
+        * This user must send USER/NICK before this timestamp is
+        * reached or they will be disconnected.
         */
-       unsigned int timeout;
+       time_t timeout;
        
        /** The oper type they logged in as, if they are an oper.
         * This is used to check permissions in operclasses, so that
@@ -880,7 +880,7 @@ namespace irc
 
                /** Sets of time and users in whowas list
                 */
-               typedef std::map<time_t,irc::string> whowas_users_fifo;
+               typedef std::deque<std::pair<time_t,irc::string> > whowas_users_fifo;
 
                /** Called every hour by the core to remove expired entries
                 */