summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-19 18:42:53 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-19 18:42:53 +0000
commit1a307616adeef74eddb0e0093b56c8da2195b24c (patch)
tree9deb42d533560b6ff4c1c745b566118d56be85e2 /include
parent33bc4e4863a7348bff108ffd73c7bf25025fdbee (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/users.h8
1 files changed, 1 insertions, 7 deletions
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.