summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_misc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-17 18:00:46 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-17 18:00:54 +0300
commit73769ed8b0004dd35a33fdf75d3186f557cb60f3 (patch)
tree245743897e5d0301fcd4c2f0305c012d21efbdbb /protocols/JabberG/src/jabber_misc.cpp
parent554555b0d5de320c02a272caeccf8a419c1f62a8 (diff)
code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_misc.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_misc.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp
index 2e861fcb2d..8299e783b0 100755
--- a/protocols/JabberG/src/jabber_misc.cpp
+++ b/protocols/JabberG/src/jabber_misc.cpp
@@ -98,10 +98,10 @@ MCONTACT CJabberProto::DBCreateContact(const char *jid, const char *nick, bool t
return hNewContact;
}
-BOOL CJabberProto::AddDbPresenceEvent(MCONTACT hContact, BYTE btEventType)
+bool CJabberProto::AddDbPresenceEvent(MCONTACT hContact, BYTE btEventType)
{
if (!hContact)
- return FALSE;
+ return false;
switch (btEventType) {
case JABBER_DB_EVENT_PRESENCE_SUBSCRIBE:
@@ -109,12 +109,12 @@ BOOL CJabberProto::AddDbPresenceEvent(MCONTACT hContact, BYTE btEventType)
case JABBER_DB_EVENT_PRESENCE_UNSUBSCRIBE:
case JABBER_DB_EVENT_PRESENCE_UNSUBSCRIBED:
if (!m_bLogPresence)
- return FALSE;
+ return false;
break;
case JABBER_DB_EVENT_PRESENCE_ERROR:
if (!m_bLogPresenceErrors)
- return FALSE;
+ return false;
break;
}
@@ -126,8 +126,7 @@ BOOL CJabberProto::AddDbPresenceEvent(MCONTACT hContact, BYTE btEventType)
dbei.timestamp = time(0);
dbei.szModule = m_szModuleName;
db_event_add(hContact, &dbei);
-
- return TRUE;
+ return true;
}
///////////////////////////////////////////////////////////////////////////////