Added body to ParseISupport()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@263 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-11 06:05:13 +00:00
parent 5c3266adfb
commit 3485364715
+17 -1
View File
@@ -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++);
}
}