From 833c8320c5b81a406c1d6ef3ae37e44081df506f Mon Sep 17 00:00:00 2001 From: special Date: Wed, 10 Oct 2007 16:20:34 +0000 Subject: 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 --- src/cmd_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_stats.cpp') 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)", -- cgit v1.2.3