]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_list.cpp
Show keys to opers correctly
[user/henk/code/inspircd.git] / src / commands / cmd_list.cpp
index 6c95d7e8d390a636852d668c977cf6606adf2949..a8c696645da2dbba4e076dd6afe13ade8c283ba1 100644 (file)
@@ -59,7 +59,7 @@ CmdResult CommandList::Handle (const std::vector<std::string>& parameters, User
                }
 
                // if the channel is not private/secret, OR the user is on the channel anyway
-               bool n = i->second->HasUser(user);
+               bool n = (i->second->HasUser(user) || IS_OPER(user));
                if (!IS_OPER(user) && (i->second->IsModeSet('p')) && (!n))
                {
                        user->WriteNumeric(322, "%s *",user->nick);