diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-09-08 07:34:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-09-08 07:34:11 +0000 |
commit | 92cb62cd26cc1a5c5f96ae8c3b3855b8160884b1 (patch) | |
tree | e2ca3ab1d514006edc6a3d23c137b40e06c3511e /protocols/FacebookRM | |
parent | fbe350dc61621e78c82e8caff865a681a6a3b8c2 (diff) |
Facebook: crashfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@10405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index b76e389481..eed51d5316 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -38,7 +38,11 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username) : m_invisible = false; m_signingOut = false; m_enableChat = getBool(FACEBOOK_KEY_ENABLE_CHAT, true); - m_locale = ptrA( getStringA(FACEBOOK_KEY_LOCALE)); + + // Load custom locale, if set + ptrA locale( getStringA(FACEBOOK_KEY_LOCALE)); + if (locale != NULL) + m_locale = locale; CreateProtoService(PS_CREATEACCMGRUI, &FacebookProto::SvcCreateAccMgrUI); CreateProtoService(PS_GETMYAWAYMSG, &FacebookProto::GetMyAwayMsg); |