]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_testnet.cpp
SVSNICK should not translate nicks to UIDs
[user/henk/code/inspircd.git] / src / modules / m_testnet.cpp
index 0bc33f002f8c5e0c9a007b50ffef513ae87ba57d..5951587b36ee5fbdab5d7751508ea29bec66a848 100644 (file)
@@ -2,7 +2,7 @@
  *       | 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
@@ -18,6 +18,7 @@
 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
@@ -154,7 +155,6 @@ static void checkall(Module* noimpl)
        CHK(OnPostOper);
        CHK(OnSyncNetwork);
        CHK(OnSetAway);
-       CHK(OnUserList);
        CHK(OnPostCommand);
        CHK(OnPostJoin);
        CHK(OnWhoisLine);
@@ -170,7 +170,6 @@ static void checkall(Module* noimpl)
        CHK(OnModuleRehash);
        CHK(OnSendWhoLine);
        CHK(OnChangeIdent);
-       CHK(OnChannelRestrictionApply);
 }
 
 class CommandTest : public Command
@@ -194,11 +193,6 @@ class CommandTest : public Command
                {
                        IS_LOCAL(user)->CommandFloodPenalty += atoi(parameters[1].c_str());
                }
-               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);
-               }
                else if (parameters[0] == "check")
                {
                        checkall(creator);