From 348536471565f0ae3c1a4b689e1a6f09e129e4ed Mon Sep 17 00:00:00 2001 From: prozacx Date: Wed, 11 May 2005 06:05:13 +0000 Subject: [PATCH] Added body to ParseISupport() git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@263 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index f831aac7..dc25984d 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -864,5 +864,21 @@ void CIRCSock::ConnectionRefused() { } void CIRCSock::ParseISupport(const CString& sLine) { - DEBUG_ONLY(cout << "------[" << sLine << "]" << endl); + unsigned int i = 0; + CString sArg = sLine.Token(i++); + + while (!sArg.empty()) { + CString sName = sArg.Token(0, false, '='); + CString sValue = sArg.Token(1, true, '='); + + if (sName.CaseCmp("PREFIX") == 0) { + CString sPrefixes = sValue.Token(1, false, ')'); + + if (!sPrefixes.empty()) { + m_sNickPrefixes = sPrefixes; + } + } + + sArg = sLine.Token(i++); + } }