aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd_stats.cpp
diff options
context:
space:
mode:
authorGravatar special2007-10-10 16:21:53 +0000
committerGravatar special2007-10-10 16:21:53 +0000
commit126f06c501b34d59e195e816a67e9b9850dd4ac3 (patch)
treee35c3ca52e8fe88361396c84f08874f9d2db5a08 /src/cmd_stats.cpp
parentChange 'unrecognised command BLAH' to 'unrecognised or malformed command BLAH... (diff)
Fixed bug #437 (Empty userstats setting denies stats to opers too)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8143 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 7407f6ea3..6e6695e92 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -51,7 +51,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user,
{
std::string sn = ServerInstance->Config->ServerName;
- if ((!*ServerInstance->Config->UserStats) || (!IS_OPER(user) && !ServerInstance->ULine(user->server) && !strchr(ServerInstance->Config->UserStats,statschar)))
+ if ((!*ServerInstance->Config->UserStats && !IS_OPER(user)) || (!IS_OPER(user) && !ServerInstance->ULine(user->server) && !strchr(ServerInstance->Config->UserStats,statschar)))
{
results.push_back(sn+std::string(" 481 ")+user->nick+" :Permission denied - STATS "+statschar+" is oper-only");
return;