From 5c3266adfb2f68dee5ac658eb30ade5a31818a11 Mon Sep 17 00:00:00 2001 From: prozacx Date: Wed, 11 May 2005 05:27:54 +0000 Subject: [PATCH] Added ParseISupport() for raw 005 git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@262 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 8 +++++++- IRCSock.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index e275dd8f..f831aac7 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -17,6 +17,7 @@ CIRCSock::CIRCSock(CZNC* pZNC, CUser* pUser) : Csock() { m_MotdBuffer.SetLineCount(200); // This should be more than enough motd lines m_Nick.SetIdent(pUser->GetIdent()); m_Nick.SetHost(pUser->GetVHost()); + m_sNickPrefixes = "+@"; } CIRCSock::~CIRCSock() { @@ -103,10 +104,11 @@ void CIRCSock::ReadLine(const CString& sData) { break; } + case 5: + ParseISupport(sRest); case 2: case 3: case 4: - case 5: case 250: // highest connection count case 251: // user count case 252: // oper count @@ -765,6 +767,7 @@ void CIRCSock::UserConnected(CUserSock* pUserSock) { // Send the cached MOTD if (m_MotdBuffer.IsEmpty()) { + PutServ("MOTD"); } else { unsigned int uIdx = 0; CString sLine; @@ -860,3 +863,6 @@ void CIRCSock::ConnectionRefused() { m_pUser->PutStatus("Connection Refused. Reconnecting..."); } +void CIRCSock::ParseISupport(const CString& sLine) { + DEBUG_ONLY(cout << "------[" << sLine << "]" << endl); +} diff --git a/IRCSock.h b/IRCSock.h index 52bb1161..264d5d4d 100644 --- a/IRCSock.h +++ b/IRCSock.h @@ -40,6 +40,7 @@ public: void PutServ(const CString& sLine); void PutUser(const CString& sLine); void PutStatus(const CString& sLine); + void CIRCSock::ParseISupport(const CString& sLine); // Setters void SetPass(const CString& s) { m_sPass = s; } @@ -58,6 +59,7 @@ protected: bool m_bISpoofReleased; bool m_bAuthed; bool m_bKeepNick; + CString m_sNickPrefixes; CZNC* m_pZNC; CUser* m_pUser; CNick m_Nick;