]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sajoin.cpp
Fix namedmodes exposing non-key secret parameters to outsiders.
[user/henk/code/inspircd.git] / src / modules / m_sajoin.cpp
index f506a2e1c0cc713d1b6272fb9cb85a9ead77b7d9..d01339133eeb02d3d90a653a8817cfc573b30640 100644 (file)
@@ -45,7 +45,7 @@ class CommandSajoin : public Command
                User* dest = ServerInstance->FindNick(nickname);
                if ((dest) && (dest->registered == REG_ALL))
                {
-                       if (user != dest && !user->HasPrivPermission("users/sajoin-others", false))
+                       if (user != dest && !user->HasPrivPermission("users/sajoin-others"))
                        {
                                user->WriteNotice("*** You are not allowed to /SAJOIN other users (the privilege users/sajoin-others is needed to /SAJOIN others).");
                                return CMD_FAILURE;