From 1d49fe408ef7eedce13117464d00c8a4144bbe6b Mon Sep 17 00:00:00 2001 From: sje Date: Sat, 21 Jul 2007 02:50:55 +0000 Subject: show more info for unknown notification events git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@298 4f64403b-2f21-0410-a795-97e2b3489a10 --- MySpace/notifications.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'MySpace/notifications.cpp') 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}; -- cgit v1.2.3