/** (Optional) Password for this line
*/
char pass[MAXBUF];
+
+ /** Threshold value for flood disconnect
+ */
+ long threshold;
ConnectClass()
{
registration_timeout = 0;
flood = 0;
pingtime = 0;
+ threshold = 0;
strlcpy(host,"",MAXBUF);
strlcpy(pass,"",MAXBUF);
}
*/
std::string recvq;
+ /** Flood counters
+ */
+ long lines_in;
+ time_t reset_due;
+ long threshold;
+
userrec();
virtual ~userrec() { }
*/
bool HasPermission(char* command);
- void userrec::AddBuffer(std::string a);
+ bool userrec::AddBuffer(std::string a);
bool userrec::BufferIsReady();
void userrec::ClearBuffer();
std::string userrec::GetBuffer();