From 4db47bcf73356f4d3b55f1da48a003be9ce4f9de Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 19 Feb 2009 17:23:05 +0000 Subject: Restrict /WHO M to opers Metadata keys can contain information that should not be viewable by users, such as "delayjoin_#channel". git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11130 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_who.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commands') diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp index 9ba3c0fc9..1b77dd004 100644 --- a/src/commands/cmd_who.cpp +++ b/src/commands/cmd_who.cpp @@ -253,7 +253,8 @@ CmdResult CommandWho::Handle (const std::vector& parameters, User * opt_mode = true; break; case 'M': - opt_metadata = true; + if (user->HasPrivPermission("users/auspex")) + opt_metadata = true; break; case 'i': opt_ident = true; -- cgit v1.2.3