mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
Update ModDesc and class name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9349 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
0a16281326
commit
c8568730b5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user