Disable LocalUser.actually_read (write-only field).
This commit is contained in:
parent
c598ff7b04
commit
f9dda63969
2 changed files with 1 additions and 6 deletions
|
@ -253,7 +253,7 @@ struct LocalUser
|
|||
* -- adrian
|
||||
*/
|
||||
int allow_read; /* how many we're allowed to read in this second */
|
||||
int actually_read; /* how many we've actually read in this second */
|
||||
int dummy0;
|
||||
int sent_parsed; /* how many messages we've parsed in this second */
|
||||
time_t last_knock; /* time of last knock */
|
||||
unsigned long random_ping;
|
||||
|
|
|
@ -143,7 +143,6 @@ parse_client_queued(struct Client *client_p)
|
|||
return;
|
||||
|
||||
client_p->localClient->sent_parsed += ConfigFileEntry.client_flood_message_time;
|
||||
client_p->localClient->actually_read++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -196,8 +195,6 @@ flood_recalc(void *unused)
|
|||
if(client_p->localClient->sent_parsed < 0)
|
||||
client_p->localClient->sent_parsed = 0;
|
||||
|
||||
client_p->localClient->actually_read = 0;
|
||||
|
||||
parse_client_queued(client_p);
|
||||
|
||||
if(rb_unlikely(IsAnyDead(client_p)))
|
||||
|
@ -217,8 +214,6 @@ flood_recalc(void *unused)
|
|||
if(client_p->localClient->sent_parsed < 0)
|
||||
client_p->localClient->sent_parsed = 0;
|
||||
|
||||
client_p->localClient->actually_read = 0;
|
||||
|
||||
parse_client_queued(client_p);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue