]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sanick.cpp
Merge branch 'master+listmode'
[user/henk/code/inspircd.git] / src / modules / m_sanick.cpp
index 5f7860677726ae5a37311f69061ab06566dcbb2a..ba265fddd29acaeb2d9e7059f2d2d074634e081d 100644 (file)
@@ -40,7 +40,7 @@ class CommandSanick : public Command
                /* Do local sanity checks and bails */
                if (IS_LOCAL(user))
                {
-                       if (target && ServerInstance->ULine(target->server))
+                       if (target && target->server->IsULine())
                        {
                                user->WriteNumeric(ERR_NOPRIVILEGES, ":Cannot use an SA command on a u-lined client");
                                return CMD_FAILURE;
@@ -64,7 +64,7 @@ class CommandSanick : public Command
                {
                        std::string oldnick = user->nick;
                        std::string newnick = target->nick;
-                       if (target->ChangeNick(parameters[1], true))
+                       if (target->ChangeNick(parameters[1]))
                        {
                                ServerInstance->SNO->WriteGlobalSno('a', oldnick+" used SANICK to change "+newnick+" to "+parameters[1]);
                        }
@@ -103,4 +103,3 @@ class ModuleSanick : public Module
 };
 
 MODULE_INIT(ModuleSanick)
-