]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_testnet.cpp
Move all local-only fields to LocalUser
[user/henk/code/inspircd.git] / src / modules / m_testnet.cpp
index a4bdfc5615e24365844e24996a25c6db132494aa..7f825a72878c4af729859da317c19bdd266c1708 100644 (file)
@@ -32,9 +32,9 @@ class CommandTest : public Command
                        for(unsigned int i=0; i < count; i++)
                                user->Write(line);
                }
-               else if (parameters[0] == "freeze")
+               else if (parameters[0] == "freeze" && IS_LOCAL(user))
                {
-                       user->Penalty += 100;
+                       IS_LOCAL(user)->Penalty += 100;
                }
                else if (parameters[0] == "shutdown")
                {
@@ -51,7 +51,7 @@ class ModuleTest : public Module
  public:
        ModuleTest() : cmd(this)
        {
-               if (!strstr(ServerInstance->Config->ServerName, ".test"))
+               if (!strstr(ServerInstance->Config->ServerName.c_str(), ".test"))
                        throw ModuleException("Don't load modules without reading their descriptions!");
                ServerInstance->AddCommand(&cmd);
        }