X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_stats.cpp;h=906ad901f2201fb0b49329dc61cc6b4cba53bd0e;hb=1200d6285b1d64699c6fa2c8241e2ee40f52d2a3;hp=b4e3d64be5ce3d3d825ddc701f821a58623205e3;hpb=bc73d93718fbc47f33fb6b9780fc0af1b8bb916a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index b4e3d64be..906ad901f 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -51,7 +51,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str { std::string sn(ServerInstance->Config->ServerName); - if ((!*ServerInstance->Config->UserStats && !IS_OPER(user)) || (!IS_OPER(user) && !ServerInstance->ULine(user->server) && !strchr(ServerInstance->Config->UserStats,statschar))) + if (!user->HasPrivPermission("servers/auspex") && !strchr(ServerInstance->Config->UserStats, statschar)) { ServerInstance->SNO->WriteToSnoMask('t', "%s '%c' denied for %s (%s@%s)", @@ -88,11 +88,9 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str } break; + /* These stats symbols must be handled by a linking module */ case 'n': case 'c': - { - /* This stats symbol must be handled by a linking module */ - } break; case 'i':