]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
cmd_names Allow opers having the channels/auspex priv to view the NAMES list of ...
authorAttila Molnar <attilamolnar@hush.com>
Tue, 11 Mar 2014 12:20:21 +0000 (13:20 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 11 Mar 2014 12:20:21 +0000 (13:20 +0100)
A version of the check removed by this commit is in Channel::UserList() which takes the priv into account

Discovered by @Cronus89

src/commands/cmd_names.cpp

index 0c06b636ffb90059463082c421d217e1974bc53d..fd4a9cef51950a4a8d6c4c4fb0a9be8fd05c50c0 100644 (file)
@@ -58,11 +58,6 @@ CmdResult CommandNames::Handle (const std::vector<std::string>& parameters, User
        c = ServerInstance->FindChan(parameters[0]);
        if (c)
        {
-               if ((c->IsModeSet('s')) && (!c->HasUser(user)))
-               {
-                     user->WriteNumeric(401, "%s %s :No such nick/channel",user->nick.c_str(), c->name.c_str());
-                     return CMD_FAILURE;
-               }
                c->UserList(user);
        }
        else