summaryrefslogtreecommitdiff
path: root/src/commands/cmd_who.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-19 17:23:05 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-19 17:23:05 +0000
commit4db47bcf73356f4d3b55f1da48a003be9ce4f9de (patch)
tree51a721fe1e9e8cfbe429a93d1770c6c9a5d4079f /src/commands/cmd_who.cpp
parent54499f67c686491a785c1b08f2f30803323ee35c (diff)
Restrict /WHO <item> 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
Diffstat (limited to 'src/commands/cmd_who.cpp')
-rw-r--r--src/commands/cmd_who.cpp3
1 files changed, 2 insertions, 1 deletions
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<std::string>& 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;