X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommand_parse.cpp;h=0fa7c05b2783efefe9d9e6a2ebc3c5d19909ff42;hb=b0e469b0bbdbc76692364e1f52ef613cc02a2a06;hp=f013e0cd5a052f35d9c12be6b0384416fcccdf45;hpb=0ff8bc01c2c467b16a3b6ac35bfa67b64cb2f45a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/command_parse.cpp b/src/command_parse.cpp index f013e0cd5..0fa7c05b2 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -289,6 +289,14 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) std::string command; tokens.GetToken(command); + /* A client sent a nick prefix on their command (ick) + * rhapsody and some braindead bouncers do this -- + * the rfc says they shouldnt but also says the ircd should + * discard it if they do. + */ + if (*command.c_str() == ':') + tokens.GetToken(command); + while (tokens.GetToken(para[items]) && (items < 127)) { command_p[items] = para[items].c_str();