added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git] / src / bot_NeonSpam.h
index e3a32ef9884108a822480e33b603a1f86786fc28..a95f3bcb8658ec262e6875e79c6457046fc1f963 100644 (file)
@@ -1,5 +1,5 @@
-/* bot_NeonSpam.h - NeonServ v5.1
- * Copyright (C) 2011  Philipp Kreil (pk910)
+/* bot_NeonSpam.h - NeonServ v5.3
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,6 +20,8 @@
 
 #include "main.h"
 
+struct ChanNode;
+
 //SPAMSCAN
 #define SPAMSETTINGS_SPAMSCAN           0x000001
 #define SPAMSETTINGS_SPAMSCAN_OPS       0x000002
@@ -118,11 +120,15 @@ struct NeonSpamSettings {
 * are bigger than MAX_FLOOD_TIME * flood_amount
 */
 
+#define NEONSPAMNODE_FLAG_CAPSSCAN_WARNED  0x01
+#define NEONSPAMNODE_FLAG_DIGITSCAN_WARNED 0x02
+
 struct NeonSpamNode {
     unsigned long lastmsg; //crc32 hash
     unsigned char spamcount;
     int floodpenalty;
     time_t last_penalty_update;
+    unsigned char flags;
 };
 
 struct NeonSpamJoinNode {
@@ -139,5 +145,6 @@ void free_NeonSpam();
 
 void freeNeonSpamSettings(struct NeonSpamSettings *settings);
 char* convertNeonSpamSettingsToString(unsigned int flags, char *buffer);
+int loadNeonSpamSettings(struct ChanNode *chan);
 
 #endif
\ No newline at end of file