From 6dc4436ae48e6cc4b309d3cec609047920916cde Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 9 Apr 2014 14:57:42 +0200 Subject: Move checks determining whether a user is allowed to view the NAMES list of a channel from Channel::UserList() to cmd_names --- src/channels.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 5954d8ded..485ffd4c9 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -629,12 +629,6 @@ const char* Channel::ChanModes(bool showkey) void Channel::UserList(User *user) { bool has_privs = user->HasPrivPermission("channels/auspex"); - if (this->IsModeSet(secretmode) && !this->HasUser(user) && !has_privs) - { - user->WriteNumeric(ERR_NOSUCHNICK, "%s :No such nick/channel", this->name.c_str()); - return; - } - std::string list; list.push_back(this->IsModeSet(secretmode) ? '@' : this->IsModeSet(privatemode) ? '*' : '='); list.push_back(' '); -- cgit v1.3.1-10-gc9f91