diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-21 02:50:55 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-21 02:50:55 +0000 |
commit | 1d49fe408ef7eedce13117464d00c8a4144bbe6b (patch) | |
tree | 7777bb54204c1cb0cc73364ab2e323e7c4c6faee | |
parent | 3c50a9aa27d2138b757dd7822841c106f4c99b18 (diff) |
show more info for unknown notification events
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@298 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | MySpace/notifications.cpp | 8 | ||||
-rw-r--r-- | MySpace/notifications.h | 2 | ||||
-rw-r--r-- | MySpace/server_con.cpp | 2 | ||||
-rw-r--r-- | MySpace/version.h | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/MySpace/notifications.cpp b/MySpace/notifications.cpp index df387ad..fd69dad 100644 --- a/MySpace/notifications.cpp +++ b/MySpace/notifications.cpp @@ -309,7 +309,7 @@ void NotifyBlogSubscriptPost() { SkinPlaySound(temp);
}
-void NotifyUnknown(char *name) {
+void NotifyUnknown(char *name, char *value) {
if (!ServiceExists( MS_POPUP_ADDPOPUPT)) return;
if(bWndUnknownPopup) return;
@@ -325,15 +325,17 @@ void NotifyUnknown(char *name) { pd->url = strdup(URL_HOME);
pd->bWnd = &bWndUnknownPopup;
- TCHAR tname[256];
+ TCHAR tname[256], tvalue[512];
#ifdef _UNICODE
MultiByteToWideChar(CP_UTF8, 0, name, -1, tname, 256);
+ MultiByteToWideChar(CP_UTF8, 0, value, -1, tvalue, 512);
#else
strncpy(tname, name, 256);
+ strncpy(tvalue, value, 512);
#endif
TCHAR text[512];
- mir_sntprintf(text, 512, TranslateT("Unknown event: %s\n\nClick here to go to your homepage"), tname);
+ mir_sntprintf(text, 512, TranslateT("Unknown event:\n%s = %s\n\nClick here to go to your homepage"), tname, tvalue);
if(ServiceExists(MS_YAPP_CLASSINSTANCE)) {
PopupClassInstance d = {sizeof(d), popup_class_name};
diff --git a/MySpace/notifications.h b/MySpace/notifications.h index 3acbb18..190e146 100644 --- a/MySpace/notifications.h +++ b/MySpace/notifications.h @@ -8,7 +8,7 @@ void NotifyFriendRequest(); void NotifyPictureComment();
void NotifyBlogSubscriptPost();
-void NotifyUnknown(char *name);
+void NotifyUnknown(char *name, char *value);
void InitNotifications();
void DeinitNotifications();
diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp index e6ee1e3..aefb24c 100644 --- a/MySpace/server_con.cpp +++ b/MySpace/server_con.cpp @@ -755,7 +755,7 @@ void __cdecl ServerThreadFunc(void*) { && strcmp(kv.first.text, "BlogSubscriptionPost") != 0
&& strcmp(kv.first.text, "€") != 0)
{
- NotifyUnknown(kv.first.text);
+ NotifyUnknown(kv.first.text, kv.second.text);
}
}
}
diff --git a/MySpace/version.h b/MySpace/version.h index 1ebf4be..c477cff 100644 --- a/MySpace/version.h +++ b/MySpace/version.h @@ -5,7 +5,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 5
-#define __BUILD_NUM 5
+#define __BUILD_NUM 6
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|