#include "inspircd.h"
-/* $ModDesc: A module overriding /list, and making it safe - stop those sendq problems. */
+/* $ModDesc: Disallows /LIST for recently connected clients to hinder spam bots */
class ModuleSecureList : public Module
{
std::vector<std::string> allowlist;
time_t WaitTime;
public:
- ModuleSecureList() {
+ void init()
+ {
OnRehash(NULL);
Implementation eventlist[] = { I_OnRehash, I_OnPreCommand, I_On005Numeric };
- ServerInstance->Modules->Attach(eventlist, this, 3);
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
virtual ~ModuleSecureList()
virtual Version GetVersion()
{
- return Version("A module overriding /list, and making it safe - stop those sendq problems.",VF_VENDOR);
+ return Version("Disallows /LIST for recently connected clients to hinder spam bots", VF_VENDOR);
}
void OnRehash(User* user)