summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/users.h8
-rw-r--r--src/userprocess.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/users.h b/include/users.h
index 8a7fa1aeb..80fbf43e0 100644
--- a/include/users.h
+++ b/include/users.h
@@ -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
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index a740d0d7c..b065c49fb 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -254,7 +254,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
* registration timeout -- didnt send USER/NICK/HOST
* in the time specified in their connection class.
*/
- if (((unsigned)TIME > (unsigned)curr->timeout) && (curr->registered != REG_ALL))
+ if ((TIME > curr->timeout) && (curr->registered != REG_ALL))
{
this->Log(DEBUG,"InspIRCd: registration timeout: %s",curr->nick);
GlobalGoners.AddItem(curr,"Registration timeout");