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()
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);
}
ld->list_position++;
}
- while ((chan != NULL) && (amount_sent < (user->sendqmax / 4)));
+ while ((chan != NULL) && (amount_sent < (user->MyClass->GetSendqMax() / 4)));
if (ld->list_ended)
{
user->Shrink("safelist_cache");