From: <ps...@us...> - 2008-07-23 13:35:57
|
Revision: 1144 http://znc.svn.sourceforge.net/znc/?rev=1144&view=rev Author: psychon Date: 2008-07-23 13:36:04 +0000 (Wed, 23 Jul 2008) Log Message: ----------- Some weird clients might send a nickmask prefix, handle this correctly *cough* eggdrop is evil *cough* Thanks to dare for debugging this. Modified Paths: -------------- trunk/Client.cpp Modified: trunk/Client.cpp =================================================================== --- trunk/Client.cpp 2008-07-22 11:34:38 UTC (rev 1143) +++ trunk/Client.cpp 2008-07-23 13:36:04 UTC (rev 1144) @@ -46,6 +46,12 @@ #endif CString sCommand = sLine.Token(0); + if (sCommand.Left(1) == ":") { + // Evil client! Sending a nickmask prefix on client's command + // is bad, bad, bad, bad, bad, bad, bad, bad, BAD, B A D! + sLine = sLine.Token(1, true); + sCommand = sLine.Token(0); + } if (sCommand.CaseCmp("PASS") == 0) { if (!IsAttached()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |