From 3110230083a1e3edb77242197fccaf8942b71a83 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 3 Aug 2007 17:09:24 +0000 Subject: 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 --- src/cmd_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3