diff options
-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); |