mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user