mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
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
This commit is contained in:
parent
63e3449dcd
commit
b2bea78ea1
@ -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)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user