diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-03 17:09:24 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-03 17:09:24 +0000 |
commit | 3110230083a1e3edb77242197fccaf8942b71a83 (patch) | |
tree | a9cc1e9e02bb461dd46007733c8bf46331a20d26 /src | |
parent | 5edae19f689dbb95ea58f468f1dcb85a989578a9 (diff) |
Allow clients on ULined servers to request stats indiscriminately.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7635 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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 98b2c63dd..5a78bd9e9 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) && !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; |