summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-11 13:20:21 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-11 13:20:21 +0100
commit04779a0a0d82ab79036ca3d8e4ee0a4f21955baf (patch)
tree5b079c70e9aa2d8dbe90c8425c1f0cfbb13e16ed /src
parent6aaf7047297b739377e7d509cb914f32447fb281 (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
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_names.cpp5
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