summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index b483c410b..8e704e796 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -326,9 +326,11 @@ void CommandParser::ProcessBuffer(std::string &buffer,userrec *user)
while ((a = buffer.find("\r")) != std::string::npos)
buffer.erase(a);
- log(DEBUG,"CMDIN: %s %s",user->nick,buffer.c_str());
-
- this->ProcessCommand(user,buffer);
+ if (buffer.length())
+ {
+ log(DEBUG,"CMDIN: %s %s",user->nick,buffer.c_str());
+ this->ProcessCommand(user,buffer);
+ }
}
bool CommandParser::CreateCommand(command_t *f)