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:
special 2007-09-18 14:23:18 +00:00
parent 63e3449dcd
commit b2bea78ea1

View File

@ -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)",