next steps pokerthcleaner, read config file with badwords and settings, warn + kick procedure

This commit is contained in:
doitux
2009-07-19 23:14:27 +00:00
parent 7513742d29
commit 4acc9ec234
12 changed files with 856 additions and 42 deletions
+11 -2
View File
@@ -6,15 +6,22 @@
#include <stdlib.h>
class TextFloodCheck
class TextFloodCheck: public QObject
{
Q_OBJECT
public:
TextFloodCheck();
void setTextFloodLevelToTrigger(int level) { textFloodLevelToTrigger = level; }
bool run(unsigned);
public slots:
void cleanMsgTimesList();
void removeNickFromList(unsigned);
private:
QTimer cleanTimer;
QTimer *cleanTimer;
boost::timers::portable::second_timer timer;
struct TextFloodInfos {
int floodLevel;
@@ -22,6 +29,8 @@ private:
};
TextFloodInfos myTextFloodInfos;
QMap<unsigned, TextFloodInfos> msgTimesList;
int textFloodLevelToTrigger;
};
#endif // TEXTFLOODCHECK_H