diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-01-28 18:50:38 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-01-28 18:50:38 +0300 |
| commit | 5c115e80b1745137cf9df5a9eddfceab2f217a11 (patch) | |
| tree | a6822d18f5c09afd1d6fed46dd0183e5e4cd517c /include | |
| parent | 8dd25fa2937b260430eef88c1d6ebcc7b162020a (diff) | |
USERINFO validator
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_chat_int.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/m_chat_int.h b/include/m_chat_int.h index 902af190f1..3cbe21e2bb 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -79,11 +79,20 @@ class CMsgDialog; struct USERINFO : public MZeroedObject, public MNonCopyable
{
+ ~USERINFO() {
+ iSignature = 0;
+ }
+
wchar_t* pszUID;
wchar_t* pszNick;
+ uint32_t iSignature = GC_FAKE_EVENT;
uint16_t Status;
- int iStatusEx;
uint16_t ContactStatus;
+ int iStatusEx;
+
+ bool isValid() const {
+ return iSignature == GC_FAKE_EVENT;
+ }
};
struct MIR_APP_EXPORT GCModuleInfoBase : public MZeroedObject, public MNonCopyable
|
