From 3e150b98f540368b1fa21415d9f935620b811dd0 Mon Sep 17 00:00:00 2001 From: silverleo Date: Tue, 6 Jul 2010 15:38:21 +0000 Subject: [PATCH] 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 --- IRCSock.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IRCSock.cpp b/IRCSock.cpp index 07892dcb..8fdfeea8 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -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