summaryrefslogtreecommitdiff
path: root/src/stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stats.cpp')
-rw-r--r--src/stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stats.cpp b/src/stats.cpp
index b7b92d9a6..448d6deee 100644
--- a/src/stats.cpp
+++ b/src/stats.cpp
@@ -19,7 +19,7 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results)
{
std::string sn(this->Config->ServerName);
- if (!user->HasPrivPermission("servers/auspex") && !strchr(this->Config->UserStats, statschar))
+ if (!user->HasPrivPermission("servers/auspex") && Config->UserStats.find(statschar) == std::string::npos)
{
this->SNO->WriteToSnoMask('t',
"%s '%c' denied for %s (%s@%s)",