-/* 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
#include "main.h"
+struct ChanNode;
+
//SPAMSCAN
#define SPAMSETTINGS_SPAMSCAN 0x000001
#define SPAMSETTINGS_SPAMSCAN_OPS 0x000002
* 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 {
void freeNeonSpamSettings(struct NeonSpamSettings *settings);
char* convertNeonSpamSettingsToString(unsigned int flags, char *buffer);
+int loadNeonSpamSettings(struct ChanNode *chan);
#endif
\ No newline at end of file