* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
struct vtbase
{
virtual void isok(const char* name, int impl, Module* basemod, std::vector<std::string>& allmods) = 0;
+ virtual ~vtbase() {}
};
template<typename T> struct vtable : public vtbase
CHK(OnPostOper);
CHK(OnSyncNetwork);
CHK(OnSetAway);
- CHK(OnUserList);
CHK(OnPostCommand);
CHK(OnPostJoin);
CHK(OnWhoisLine);
CHK(OnModuleRehash);
CHK(OnSendWhoLine);
CHK(OnChangeIdent);
- CHK(OnChannelRestrictionApply);
}
class CommandTest : public Command
for(unsigned int i=0; i < count; i++)
user->Write(line);
}
- else if (parameters[0] == "freeze" && IS_LOCAL(user))
+ else if (parameters[0] == "freeze" && IS_LOCAL(user) && parameters.size() > 1)
{
- IS_LOCAL(user)->Penalty += 100;
- }
- else if (parameters[0] == "shutdown" && IS_LOCAL(user))
- {
- int i = parameters.size() > 1 ? atoi(parameters[1].c_str()) : 2;
- ServerInstance->SE->Shutdown(IS_LOCAL(user)->GetFd(), i);
+ IS_LOCAL(user)->CommandFloodPenalty += atoi(parameters[1].c_str());
}
else if (parameters[0] == "check")
{