diff options
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 93fbca70d0..53ef5a3884 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -45,15 +45,16 @@ CContactCache::CContactCache(const MCONTACT hContact) m_wOldStatus = m_wStatus = ID_STATUS_OFFLINE;
if (hContact) {
- cc = db_get_contact(hContact);
- initPhaseTwo();
- }
- else {
- cc = &ccInvalid;
- m_szAccount = C_INVALID_ACCOUNT;
- m_isMeta = false;
- m_Valid = false;
+ if ((cc = db_get_contact(hContact)) != NULL) {
+ initPhaseTwo();
+ return;
+ }
}
+
+ cc = &ccInvalid;
+ m_szAccount = C_INVALID_ACCOUNT;
+ m_isMeta = false;
+ m_Valid = false;
}
/**
|