From 1a307616adeef74eddb0e0093b56c8da2195b24c Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 19 Jul 2008 18:42:53 +0000 Subject: Use a switch (cleaner, probably more efficient) for user status here, also, we can remove another member (::timeout) that is only actually used before registration by doing a bit of addition. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10041 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index c395608c7..b50023533 100644 --- a/include/users.h +++ b/include/users.h @@ -278,7 +278,7 @@ public: /** Returns the registration timeout */ - unsigned int GetRegTimeout() + time_t GetRegTimeout() { return (registration_timeout ? registration_timeout : 90); } @@ -563,12 +563,6 @@ class CoreExport User : public connection */ time_t awaytime; - /** Timestamp of current time + connection class timeout. - * This user must send USER/NICK before this timestamp is - * reached or they will be disconnected. - */ - 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 * we can say 'yay' or 'nay' to any commands they issue. -- cgit v1.2.3