summaryrefslogtreecommitdiff
path: root/src/cmd_stats.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-07 21:11:50 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-07 21:11:50 +0000
commitfad82c2e0d400aee8c11a51962cf0a522efa5d66 (patch)
treeebd7b899f97d6d2f47ef8b038c93b6313cbb5b13 /src/cmd_stats.cpp
parent0c2f9e92e17c72102a329f3d3f361e80258613f7 (diff)
Replaced operonlystats with userstats to improve security
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5456 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_stats.cpp')
-rw-r--r--src/cmd_stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp
index 338a1a2ac..6d2efd047 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -46,7 +46,7 @@ void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, string_lis
{
std::string sn = ServerInstance->Config->ServerName;
- if ((*ServerInstance->Config->OperOnlyStats) && (strchr(ServerInstance->Config->OperOnlyStats,statschar)) && (!*user->oper))
+ if ((*ServerInstance->Config->UserStats) && (!*user->oper) && (!strchr(ServerInstance->Config->UserStats,statschar)))
{
results.push_back(sn+std::string(" 481 ")+user->nick+" :Permission denied - STATS "+statschar+" is oper-only");
return;