first chatcleaner steps (simple badword and textflood check works on port 7777)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef MESSAGEFILTER_H
|
||||
#define MESSAGEFILTER_H
|
||||
|
||||
#include <QtCore>
|
||||
#include <stdlib.h>
|
||||
|
||||
class BadWordCheck;
|
||||
class TextFloodCheck;
|
||||
|
||||
class MessageFilter: public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
MessageFilter();
|
||||
|
||||
QString check(QString);
|
||||
|
||||
private:
|
||||
BadWordCheck *myBadWordCheck;
|
||||
TextFloodCheck *myTextFloodCheck;
|
||||
|
||||
struct ClientWarnInfos {
|
||||
QString nick;
|
||||
int lastWarnType;
|
||||
int warnLevel;
|
||||
};
|
||||
|
||||
QMap<unsigned, ClientWarnInfos> clientWarnLevelList;
|
||||
|
||||
};
|
||||
|
||||
#endif // MESSAGEFILTER_H
|
||||
Reference in New Issue
Block a user