summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-09 13:12:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-09 13:12:58 +0000
commitff4179ec1260200c71b3a9cec08564b1a522581c (patch)
tree64471e4d5af0e7094b6333b8f11760eeb2923724
parentf6ba6afc19eab6ed36bbd977f53ffeb11b290f2a (diff)
Only perform check if OperOnlyStats is defined
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2751 e03df62e-2008-0410-955e-edbf42e46eb7
-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;