From b2bea78ea1b21a4b14e652944073a2f744c19767 Mon Sep 17 00:00:00 2001 From: special Date: Tue, 18 Sep 2007 14:23:18 +0000 Subject: Fixed bug #417 (empty userstats allowed all stats to be viewed) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8042 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp index 2e74d7d06..73ba2844c 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) && !ServerInstance->ULine(user->server) && !strchr(ServerInstance->Config->UserStats,statschar))) { ServerInstance->SNO->WriteToSnoMask('t', "%s '%c' denied for %s (%s@%s)", -- cgit v1.2.3