#include "inspircd.h"
-extern InspIRCd* ServerInstance;
+
class TimedBan : public classbase
{
class cmd_tban : public command_t
{
public:
- cmd_tban () : command_t("TBAN", 0, 3)
+ cmd_tban (InspIRCd* Instance) : command_t(Instance,"TBAN", 0, 3)
{
this->source = "m_timedbans.so";
syntax = "<channel> <duration> <banmask>";
: Module::Module(Me)
{
- mycommand = new cmd_tban();
+ mycommand = new cmd_tban(ServerInstance);
ServerInstance->AddCommand(mycommand);
TimedBanList.clear();
}