summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd_stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp
index 53c371816..8a49e96ed 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -84,7 +84,7 @@ void cmd_stats::Handle (char **parameters, int pcnt, userrec *user)
parameters[0][1] = '\0';
}
- if ((strchr(Config->OperOnlyStats,*parameters[0])) && (!*user->oper))
+ if ((*Config->OperOnlyStats) && (strchr(Config->OperOnlyStats,*parameters[0])) && (!*user->oper))
{
WriteServ(user->fd,"481 %s :Permission denied - This stats character is set as oper-only");
return;