From 04779a0a0d82ab79036ca3d8e4ee0a4f21955baf Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 11 Mar 2014 13:20:21 +0100 Subject: 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 --- src/commands/cmd_names.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/commands/cmd_names.cpp') 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& 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 -- cgit v1.2.3