diff options
Diffstat (limited to 'src/modules/m_quitban.cpp')
-rw-r--r-- | src/modules/m_quitban.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_quitban.cpp b/src/modules/m_quitban.cpp index 993ab1843..7cd5742d8 100644 --- a/src/modules/m_quitban.cpp +++ b/src/modules/m_quitban.cpp @@ -14,23 +14,23 @@ #include "inspircd.h" #include "xline.h" -/* $ModDesc: Creates a snomask with notices whenever a new channel is created */ +/* $ModDesc: Throttles the connections of any users who try quitflood the server */ -class ModuleChanCreate : public Module +class ModuleQuitBan : public Module { private: clonemap quits; unsigned int threshold; unsigned int banduration; public: - ModuleChanCreate(InspIRCd* Me) : Module(Me) + ModuleQuitBan(InspIRCd* Me) : Module(Me) { Implementation eventlist[] = { I_OnUserDisconnect, I_OnGarbageCollect, I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, 3); OnRehash(NULL, ""); } - virtual ~ModuleChanCreate() + virtual ~ModuleQuitBan() { } @@ -93,4 +93,4 @@ class ModuleChanCreate : public Module } }; -MODULE_INIT(ModuleChanCreate) +MODULE_INIT(ModuleQuitBan) |