summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-28 13:46:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-28 13:46:19 +0300
commite4082ab57edbb790f721fed477532f93ff1986b8 (patch)
treea6f09b2ae1d0df1a47dec13b1ea096bfa782e9c5 /protocols/JabberG
parent5402e71b923712624d6df9aad6f3983ba4e44f4e (diff)
database:
- namespace DB declared for commonly used database classes; - stubs for database event cursors; - code cleaning
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-xprotocols/JabberG/src/jabber_misc.cpp2
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp
index 1fd7302e72..9b2539fddc 100755
--- a/protocols/JabberG/src/jabber_misc.cpp
+++ b/protocols/JabberG/src/jabber_misc.cpp
@@ -48,7 +48,7 @@ void CJabberProto::DBAddAuthRequest(const char *jid, const char *nick)
MCONTACT hContact = DBCreateContact(jid, nick, true, true);
Contact_Hide(hContact, false);
- DB_AUTH_BLOB blob(hContact, nick, nullptr, nullptr, jid, nullptr);
+ DB::AUTH_BLOB blob(hContact, nick, nullptr, nullptr, jid, nullptr);
PROTORECVEVENT pre = {};
pre.timestamp = (DWORD)time(0);
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index edee15ae30..fe623c111f 100755
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -388,7 +388,7 @@ MCONTACT CJabberProto::AddToListByEvent(int flags, int /*iContact*/, MEVENT hDbE
if (dbei.eventType != EVENTTYPE_AUTHREQUEST)
return 0;
- DB_AUTH_BLOB blob(dbei.pBlob);
+ DB::AUTH_BLOB blob(dbei.pBlob);
return AddToListByJID(blob.get_email(), flags);
}
@@ -412,7 +412,7 @@ int CJabberProto::Authorize(MEVENT hDbEvent)
if (mir_strcmp(dbei.szModule, m_szModuleName))
return 1;
- DB_AUTH_BLOB blob(dbei.pBlob);
+ DB::AUTH_BLOB blob(dbei.pBlob);
debugLogA("Send 'authorization allowed' to %s", blob.get_email());
m_ThreadInfo->send(XmlNode("presence") << XATTR("to", blob.get_email()) << XATTR("type", "subscribed"));