diff options
Diffstat (limited to 'MySpace/notifications.cpp')
-rw-r--r-- | MySpace/notifications.cpp | 8 |
1 files changed, 5 insertions, 3 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};
|