Applied patches from psychon

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@791 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2007-03-21 16:13:08 +00:00
parent 0a62274975
commit e8c3ebf477
3 changed files with 39 additions and 24 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ bool CNick::RemPerm(unsigned char uPerm) {
}
void CNick::UpdatePermChar() {
const CString& sChanPerms = (!m_pUser) ? "@+" : m_pUser->GetIRCSock()->GetPerms();
CIRCSock* pIRCSock = (!m_pUser) ? NULL : m_pUser->GetIRCSock();
const CString& sChanPerms = (!pIRCSock) ? "@+" : pIRCSock->GetPerms();
m_cPerm = 0;
for (unsigned int a = 0; a < sChanPerms.size(); a++) {