* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
ModuleSafeList(InspIRCd* Me) : Module(Me)
{
OnRehash(NULL, "");
+ Implementation eventlist[] = { I_OnBufferFlushed, I_OnPreCommand, I_OnCleanup, I_OnUserQuit, I_On005Numeric, I_OnRehash };
+ ServerInstance->Modules->Attach(eventlist, this, 6);
}
virtual ~ModuleSafeList()
return Version(1,1,0,0,VF_VENDOR,API_VERSION);
}
- void Implements(char* List)
- {
- List[I_OnBufferFlushed] = List[I_OnPreCommand] = List[I_OnCleanup] = List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnRehash] = 1;
- }
/*
* OnPreCommand()
if (user->GetExt("safelist_cache", ld))
{
Channel* chan = NULL;
- long amount_sent = 0;
+ unsigned long amount_sent = 0;
do
{
chan = ServerInstance->GetChannelIndex(ld->list_position);