diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-09-18 14:23:18 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-09-18 14:23:18 +0000 |
commit | b2bea78ea1b21a4b14e652944073a2f744c19767 (patch) | |
tree | b43fb7742322bc4f0d2720b0622cba7a9bae5ecb /src/cmd_stats.cpp | |
parent | 63e3449dcd91e417d8c8710aa3ed9fc832e3bfe5 (diff) |
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
Diffstat (limited to 'src/cmd_stats.cpp')
-rw-r--r-- | src/cmd_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)", |