diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-03 23:08:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-03 23:08:10 +0300 |
commit | e2eb0f327cf2086013d8534182b86f923ea98a7a (patch) | |
tree | 5c3abbd3194b9c82ea473a17b7b48e7aab406864 /protocols | |
parent | 0e32b148b70e4bc454c608f07b21e3e62cc0e942 (diff) |
Jabber: code cleaning
Diffstat (limited to 'protocols')
-rwxr-xr-x | protocols/JabberG/src/jabber.cpp | 5 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_caps.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index 6dae866193..74d0cd32f1 100755 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -178,9 +178,10 @@ int CMPlugin::Load() HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
JabberUserInfoInit();
- if (db_get_b(0, "Compatibility", "JabberCaps", 0) < 2) {
+ if (db_get_b(0, "Compatibility", "JabberCaps", 0) < 3) {
db_delete_module(0, "JabberCaps");
- db_set_b(0, "Compatibility", "JabberCaps", 2);
+ DeleteFileW(VARSW(L"%miranda_userdata%\\jabberCaps.json"));
+ db_set_b(0, "Compatibility", "JabberCaps", 3);
}
g_clientCapsManager.Load();
diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index a9ab470973..a9db096b77 100755 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -618,7 +618,7 @@ CJabberClientPartialCaps* CJabberClientCapsManager::SetClientCaps(const char *sz /////////////////////////////////////////////////////////////////////////////////////////
-static const char *str2buf(const std::string str)
+static const char *str2buf(const std::string &str)
{
return (str.empty()) ? nullptr : str.c_str();
}
|