mirror of
https://github.com/znc/znc.git
synced 2026-07-05 01:11:53 +02:00
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:
+17
-1
@@ -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++);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user