diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-05 11:50:56 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-05 11:50:56 +0000 |
commit | c8568730b557097305d133d1acc29e45b6606a2f (patch) | |
tree | ef29f3fe06973e278c8bf0bb8c8cf31e473462f8 /src | |
parent | 0a162813268d16304eb5e3245abdc105433d56bd (diff) |
Update ModDesc and class name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9349 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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) |