Suppress a CAP error on servers that dont support it.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2070 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2010-07-06 15:38:21 +00:00
parent e1d214bf03
commit 3e150b98f5
+5
View File
@@ -316,6 +316,11 @@ void CIRCSock::ReadLine(const CString& sData) {
}
break;
}
case 451:
// :irc.server.com 451 CAP :You have not registered
// Servers that dont support CAP will give us this error, dont send it to the client
if (sNick.Equals("CAP"))
return;
case 470: {
// :irc.unreal.net 470 mynick [Link] #chan1 has become full, so you are automatically being transferred to the linked channel #chan2
// :mccaffrey.freenode.net 470 mynick #electronics ##electronics :Forwarding to another channel