diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-29 15:01:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-29 15:01:13 +0000 |
commit | db11f2b24c6aeb5ab7ba4678638890bc68b1d0c1 (patch) | |
tree | 74480013c1ae951748073e505259a7d35fee8609 /include | |
parent | 96bf59631c7a17d9f0e99847a33df85a279aae4d (diff) |
Fixed some flood checking
added noticeall
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1262 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 1 | ||||
-rw-r--r-- | include/users.h | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 2ade03588..d5f149456 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -161,6 +161,7 @@ long GetMaxBans(char* name); bool LoadModule(const char* filename); bool UnloadModule(const char* filename); char* ModuleError(); +void NoticeAll(userrec *source, bool local_only, char* text, ...); // mesh network functions diff --git a/include/users.h b/include/users.h index a607f12c5..0dfbc2223 100644 --- a/include/users.h +++ b/include/users.h @@ -63,12 +63,17 @@ class ConnectClass : public classbase /** (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); } @@ -183,6 +188,7 @@ class userrec : public connection */ long lines_in; time_t reset_due; + long threshold; userrec(); @@ -221,7 +227,7 @@ class userrec : public connection */ 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(); |