diff options
| author | 2007-09-18 14:24:20 +0000 | |
|---|---|---|
| committer | 2007-09-18 14:24:20 +0000 | |
| commit | 9379c1d8d95cb56f9db49b645b0b2a0a43e2ca53 (patch) | |
| tree | 68fd440d27b55a9804fc0f5bb7ab2df5f7cadcbc /src/cmd_stats.cpp | |
| parent | Fixed bug #414 (cosmetic issue with oper failure notices). Patch by dz (diff) | |
Fixed bug #417 (empty userstats allowed all stats to be viewed)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8043 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 5a78bd9e9..7407f6ea3 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) && !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; |
