]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
None of the modules use an extern InspIRCd* any more
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index a778ab4c6848866ead67e7111ca7b8acf0b57196..30aba781c8f9a021320fac4f31a9bfb45f629424 100644 (file)
@@ -29,7 +29,7 @@ using namespace std;
 #include "inspircd.h"
 
 
-extern InspIRCd* ServerInstance;
+
 
 class TimedBan : public classbase
 {
@@ -45,7 +45,7 @@ timedbans TimedBanList;
 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>";
@@ -120,7 +120,7 @@ class ModuleTimedBans : public Module
                : Module::Module(Me)
        {
                
-               mycommand = new cmd_tban();
+               mycommand = new cmd_tban(ServerInstance);
                ServerInstance->AddCommand(mycommand);
                TimedBanList.clear();
        }