diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-23 13:28:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-23 13:28:20 +0000 |
commit | 20a19cd84f00a2235e1ab000921ae58ace13faa9 (patch) | |
tree | d6477be5e1ce781398c9c69a8065112427da1a82 /protocols/FacebookRM/src/proto.cpp | |
parent | 12d981da28a6a35dbdcd4d207dc4497f902f287d (diff) |
Facebook: proper default group's name handling
git-svn-id: http://svn.miranda-ng.org/main/trunk@11595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-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 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 <http://www.gnu.org/licenses/>. #include "common.h" FacebookProto::FacebookProto(const char* proto_name, const TCHAR* username) : -PROTO<FacebookProto>(proto_name, username) + PROTO<FacebookProto>(proto_name, username), + m_tszDefaultGroup(getTStringA(FACEBOOK_KEY_DEF_GROUP)) { facy.parent = this; @@ -48,6 +49,9 @@ PROTO<FacebookProto>(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); |