From 20a19cd84f00a2235e1ab000921ae58ace13faa9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 23 Dec 2014 13:28:20 +0000 Subject: Facebook: proper default group's name handling git-svn-id: http://svn.miranda-ng.org/main/trunk@11595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/proto.cpp') diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index cb070adb20..fae1246351 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -23,7 +23,8 @@ along with this program. If not, see . #include "common.h" FacebookProto::FacebookProto(const char* proto_name, const TCHAR* username) : -PROTO(proto_name, username) + PROTO(proto_name, username), + m_tszDefaultGroup(getTStringA(FACEBOOK_KEY_DEF_GROUP)) { facy.parent = this; @@ -48,6 +49,9 @@ PROTO(proto_name, username) if (locale != NULL) m_locale = locale; + if (m_tszDefaultGroup == NULL) + m_tszDefaultGroup = mir_tstrdup(_T("Facebook")); + CreateProtoService(PS_CREATEACCMGRUI, &FacebookProto::SvcCreateAccMgrUI); CreateProtoService(PS_GETMYAWAYMSG, &FacebookProto::GetMyAwayMsg); CreateProtoService(PS_GETMYAVATART, &FacebookProto::GetMyAvatar); -- cgit v1.2.3