]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_shun.cpp
Resolve /STATS S conflict between SVSHOLD and SHUN
[user/henk/code/inspircd.git] / src / modules / m_shun.cpp
index 599d665a114eff445b31f0d97a14b63d7f5fe874..017ed174e5db4be77c8f6f2e31ca5235abec6bb4 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
@@ -205,7 +205,7 @@ class ModuleShun : public Module
 
        virtual ModResult OnStats(char symbol, User* user, string_list& out)
        {
-               if (symbol != 'S')
+               if (symbol != 'H')
                        return MOD_RES_PASSTHRU;
 
                ServerInstance->XLines->InvokeStats("SHUN", 223, user, out);
@@ -236,7 +236,7 @@ class ModuleShun : public Module
                affectopers = MyConf.ReadFlag("shun", "affectopers", "no", 0);
        }
 
-       virtual void OnUserConnect(User* user)
+       virtual void OnUserConnect(LocalUser* user)
        {
                if (!IS_LOCAL(user))
                        return;
@@ -251,7 +251,7 @@ class ModuleShun : public Module
                }
        }
 
-       virtual ModResult OnPreCommand(std::string &command, std::vector<std::string>& parameters, User* user, bool validated, const std::string &original_line)
+       virtual ModResult OnPreCommand(std::string &command, std::vector<std::string>& parameters, LocalUser* user, bool validated, const std::string &original_line)
        {
                if (validated)
                        return MOD_RES_PASSTHRU;
@@ -294,7 +294,7 @@ class ModuleShun : public Module
 
        virtual Version GetVersion()
        {
-               return Version("Provides the /shun command, which stops a user executing all commands except PING and PONG.",VF_VENDOR|VF_COMMON,API_VERSION);
+               return Version("Provides the /shun command, which stops a user executing all commands except PING and PONG.",VF_VENDOR|VF_COMMON);
        }
 };