summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command_parse.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 0c61fd8b1..7c9e5aa5c 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -596,14 +596,12 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd)
return;
}
}
- if ((user->registered == 7) && (!*user->oper))
+ if ((user->registered == 7) && (!*user->oper) && (*Config->DisabledCommands))
{
std::stringstream dcmds(Config->DisabledCommands);
- while (!dcmds.eof())
+ std::string thiscmd;
+ while (dcmds >> thiscmd)
{
- std::string thiscmd;
- dcmds >> thiscmd;
-
if (!strcasecmp(thiscmd.c_str(),command))
{
// command is disabled!