diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-19 12:37:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-19 12:37:11 +0300 |
commit | c1fe97abf28589a17bb1ea1e60759649287894f6 (patch) | |
tree | e35148228c93fc2d5e91ebc46c1609d54b80ca21 /protocols/JabberG | |
parent | 468c5891c6fcae96e2282f16347bca4385940adf (diff) |
warning fix
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-x | protocols/JabberG/src/jabber.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index 854d565e1f..cbcdfa3861 100755 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -71,6 +71,10 @@ static PLUGININFOEX pluginInfoEx = { CMPlugin::CMPlugin() :
ACCPROTOPLUGIN<CJabberProto>("JABBER", pluginInfoEx)
{
+ char tmp[8];
+ Utils_GetRandom(tmp, sizeof(tmp));
+ bin2hex(tmp, sizeof(tmp), szRandom);
+
SetUniqueId("jid");
}
@@ -156,10 +160,6 @@ int CMPlugin::Load() bPlatform = 0;
#endif
- char tmp[8];
- Utils_GetRandom(tmp, sizeof(tmp));
- bin2hex(tmp, sizeof(tmp), szRandom);
-
Miranda_GetVersionText(szCoreVersion, _countof(szCoreVersion));
CallService(MS_UTILS_GETCOUNTRYLIST, (WPARAM)&g_cbCountries, (LPARAM)&g_countries);
|