#include <antiflood.h>
Public Member Functions | |
AntiFlood (BotKernel *) | |
Constructor. |
trustyRC use an anti-excess-flood system build in the kernel that controls output messages flow to make sure that the bot won't be killed by the server for "excess flood". This system make that the bot can sometimes take some time to answer. The main case is when a lot of users use bot's commands : the kernel will store answers and people will think that the bot lags. It can be considered as a flood attack from users. To avoid this problem, this plugin will watch messages' timestamps and if a message to treat is too old, it will drop it. Of course, only PRIVMSG are concerned, to don't drop a "PING" command for example. A configuration parameters exists to don't drop messages if they come from a super admin, even if there timestamp is too old.
Definition at line 51 of file antiflood.h.
AntiFlood::AntiFlood | ( | BotKernel * | b | ) |
Constructor.
Constructor
Definition at line 34 of file antiflood.cpp.
References Plugin::addRequirement(), Plugin::author, Plugin::bindFunction(), Plugin::description, IN_BEFORE_TREATMENT, Plugin::name, and Plugin::version.