From be2a677ddd01859a61f484aa8f1e5d916a8f3ca5 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 1 Dec 2008 20:14:49 +0000 Subject: Remove lines_in and reset_due flood protection mechanism, recvq/sendq on their own now fill this role, as we have proper penalties. This tidies up *a lot* of code, and also saves a further sizeof(time_t) + sizeof(unsigned int) per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10838 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 48e0bcd12..851e0a1d6 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -209,10 +209,9 @@ void User::DecrementModes() User::User(InspIRCd* Instance, const std::string &uid) : ServerInstance(Instance) { server = (char*)Instance->FindServerNamePtr(Instance->Config->ServerName); - reset_due = ServerInstance->Time(); age = ServerInstance->Time(); Penalty = 0; - lines_in = lastping = signon = idle_lastmsg = nping = registered = 0; + lastping = signon = idle_lastmsg = nping = registered = 0; bytes_in = bytes_out = cmds_in = cmds_out = 0; quietquit = quitting = exempt = haspassed = dns_done = false; fd = -1; -- cgit v1.3.1-10-gc9f91