summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h1
-rw-r--r--include/users.h8
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();