diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-11 13:20:21 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-11 13:20:21 +0100 |
commit | 04779a0a0d82ab79036ca3d8e4ee0a4f21955baf (patch) | |
tree | 5b079c70e9aa2d8dbe90c8425c1f0cfbb13e16ed | |
parent | 6aaf7047297b739377e7d509cb914f32447fb281 (diff) |
cmd_names Allow opers having the channels/auspex priv to view the NAMES list of +s channels from outside
A version of the check removed by this commit is in Channel::UserList() which takes the priv into account
Discovered by @Cronus89
-rw-r--r-- | src/commands/cmd_names.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/commands/cmd_names.cpp b/src/commands/cmd_names.cpp index 0c06b636f..fd4a9cef5 100644 --- a/src/commands/cmd_names.cpp +++ b/src/commands/cmd_names.cpp @@ -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 |