public:
ModuleAntiBear() : bearExt("antibear_timewait", this)
{
- Extensible::Register(&bearExt);
+ ServerInstance->Extensions.Register(&bearExt);
Implementation eventlist[] = { I_OnUserRegister, I_OnPreCommand };
ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual Version GetVersion()
{
- return Version("Sends a numeric on connect which cripples a common type of trojan/spambot",VF_VENDOR,API_VERSION);
+ return Version("Sends a numeric on connect which cripples a common type of trojan/spambot",VF_VENDOR);
}
virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line)
{
if (!strncmp(parameters[1].c_str(), "\1TIME Mon May 01 18:54:20 2006", 30))
{
- ZLine* zl = new ZLine(ServerInstance->Time(), 86400, ServerInstance->Config->ServerName,
+ ZLine* zl = new ZLine(ServerInstance->Time(), 86400, ServerInstance->Config->ServerName.c_str(),
"Unless you're stuck in a time warp, you appear to be a bear bot!", user->GetIPString());
if (ServerInstance->XLines->AddLine(zl,NULL))
{