diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2012-04-26 20:02:14 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2012-04-26 20:02:14 +0000 |
commit | 2ec2fe72f5754f59363335f9d5578600022661a1 (patch) | |
tree | 19fceb0fb54dbb8247dca7c7c094699e330882e3 /FacebookRM/events.cpp | |
parent | 0dec0977c6ca0bfaacb059d1a43093b0a14be3e4 (diff) |
FacebookRM: version bump
Version 0.0.8.1
! Fixed getting notifications on login
! Fixed getting unread messages on login
! Getting unread messages on login with right timestamp
! Fixed getting newsfeeds
! Fixed related to deleting contacts from miranda/server
+ New newsfeed type option "Applications and Games"
+ Contacts now have MirVer "Facebook" (for Fingerpring plugin)
+ Getting attachements for unread messages on login
! Fixed avatars in Miranda 0.10.0#3 and newer (thanks borkra)
! Some small fixes (thanks borkra)
x Doesn't work notification about friend requests
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@289 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'FacebookRM/events.cpp')
-rw-r--r-- | FacebookRM/events.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/FacebookRM/events.cpp b/FacebookRM/events.cpp index 967d878..2f93a58 100644 --- a/FacebookRM/events.cpp +++ b/FacebookRM/events.cpp @@ -48,16 +48,11 @@ LRESULT CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa TCHAR* data = (TCHAR*)PUGetPluginData(hwnd);
if (data != NULL)
{
-// char *url = mir_t2a_cp(data,CP_UTF8);
- std::string url2 = mir_t2a_cp(data,CP_UTF8);
- std::string url = "http://www.facebook.com";
- if ( url2.substr(0,4) != "http" )
- {
- url.append(url2);
- CallService(MS_UTILS_OPENURL, (WPARAM) 1, (LPARAM) url.c_str() );
- } else {
- CallService(MS_UTILS_OPENURL, (WPARAM) 1, (LPARAM) url2.c_str() );
- }
+ std::string url = mir_t2a_cp(data,CP_UTF8);
+ if ( url.substr(0,4) != "http" )
+ url = FACEBOOK_URL_HOMEPAGE + url; // make absolute url
+
+ CallService(MS_UTILS_OPENURL, (WPARAM) 1, (LPARAM) url.c_str() );
}
// After a click, destroy popup
|