mirror of
https://github.com/znc/znc.git
synced 2026-07-04 08:51:14 +02:00
Fix endless loop where nickserv answered
'Unknown command identify. Use /msg NickServ HELP' for help. Thanks to SilverLeo for reporting this. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@814 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -57,10 +57,11 @@ public:
|
||||
|
||||
void HandleMessage(CNick& Nick, const CString& sMessage)
|
||||
{
|
||||
if (!m_sPass.empty()
|
||||
if (!m_sPass.empty()
|
||||
&& Nick.GetNick().CaseCmp("NickServ") == 0
|
||||
&& sMessage.find("msg") != CString::npos
|
||||
&& sMessage.find("IDENTIFY") != CString::npos) {
|
||||
&& sMessage.find("IDENTIFY") != CString::npos
|
||||
&& !sMessage.find("help")) {
|
||||
PutIRC("PRIVMSG NickServ :IDENTIFY " + m_sPass);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user