summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 20:13:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 20:13:40 +0000
commit51fb5084945d9144f2de1f85076d6f5bb419bc23 (patch)
treec1b547281296930158cbed3f9cf7dfc0f41f148e /src/command_parse.cpp
parent6e255658272a3c566b2a9d5c9a0f2c2035910c60 (diff)
Ignore empty lines, don't try and process them as commands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4430 e03df62e-2008-0410-955e-edbf42e46eb7
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)