#include "helperfuncs.h"
#include "message.h"
#include <vector>
+#include "configreader.h"
#include "inspircd.h"
extern time_t TIME;
+extern InspIRCd* ServerInstance;
+
class ListData : public classbase
{
public:
long users = chan->GetUserCounter();
if (users)
{
- int counter = snprintf(buffer,MAXBUF,"322 %s %s %ld :[+%s] %s",u->nick,chan->name,users,chanmodes(chan,has_user),chan->topic);
+ int counter = snprintf(buffer,MAXBUF,"322 %s %s %ld :[+%s] %s",u->nick,chan->name,users,chan->ChanModes(has_user),chan->topic);
/* Increment total plus linefeed */
- amount_sent += counter + 4 + Srv->GetServerName().length();
+ amount_sent += counter + 4 + strlen(ServerInstance->Config->ServerName);
log(DEBUG,"m_safelist.so: Sent %ld of safe %ld / 4",amount_sent,u->sendqmax);
u->WriteServ(std::string(buffer));
}
}
ListTimer* MyTimer = new ListTimer(1,Srv);
- Srv->AddTimer(MyTimer);
+ ServerInstance->Timers->AddTimer(MyTimer);
}
};
Srv = Me;
MyTimer = new ListTimer(1,Srv);
- Srv->AddTimer(MyTimer);
+ ServerInstance->Timers->AddTimer(MyTimer);
}
virtual ~ModuleSafeList()