summaryrefslogtreecommitdiff
path: root/src/cmd_stats.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-10 16:20:34 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-10 16:20:34 +0000
commit833c8320c5b81a406c1d6ef3ae37e44081df506f (patch)
tree4cf870986fe47464026e8c550110bd1841237d71 /src/cmd_stats.cpp
parent083fb71b6392aa2cfb1b94de07c5e09b8130f6f5 (diff)
Fixed bug #437 (Empty userstats setting denies stats to opers too)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8142 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 73ba2844c..f8d5eba27 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -48,7 +48,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)))
{
ServerInstance->SNO->WriteToSnoMask('t',
"%s '%c' denied for %s (%s@%s)",