Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed wenet.ru's nickserv request.

Wenet.ru uses control characters in the nickserv request. It sends something
like "\x02/NickServ IDENTIFY \x1Fpassword\x1F\x02", so no wonder the
CString:find() was failing.
  • Loading branch information...
commit d469926562ae63a62ec70c61d6bec1569f096f55 1 parent 25cc51a
@nurupo nurupo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/nickserv.cpp
View
2  modules/nickserv.cpp
@@ -162,7 +162,7 @@ class CNickServ : public CModule {
|| sMessage.find("authenticate") != CString::npos
|| sMessage.find("choose a different nickname") != CString::npos
|| sMessage.find("If this is your nick, type") != CString::npos
- || sMessage.find("type /NickServ IDENTIFY password") != CString::npos)
+ || sMessage.StripControls_n().find("type /NickServ IDENTIFY password") != CString::npos)
&& sMessage.AsUpper().find("IDENTIFY") != CString::npos
&& sMessage.find("help") == CString::npos) {
MCString msValues;
Please sign in to comment.
Something went wrong with that request. Please try again.