diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-09 13:12:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-09 13:12:58 +0000 |
commit | ff4179ec1260200c71b3a9cec08564b1a522581c (patch) | |
tree | 64471e4d5af0e7094b6333b8f11760eeb2923724 /src | |
parent | f6ba6afc19eab6ed36bbd977f53ffeb11b290f2a (diff) |
Only perform check if OperOnlyStats is defined
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2751 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_stats.cpp | 2 |
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; |