From 37be3cf3d8e43198e577a85a6f2c6e12e8dd59db Mon Sep 17 00:00:00 2001 From: sje Date: Sun, 8 Jul 2007 17:27:12 +0000 Subject: added profile comment and friend request notifications git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@260 4f64403b-2f21-0410-a795-97e2b3489a10 --- MySpace/server_con.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'MySpace/server_con.cpp') diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp index 2753f14..10e3197 100644 --- a/MySpace/server_con.cpp +++ b/MySpace/server_con.cpp @@ -681,6 +681,20 @@ void __cdecl ServerThreadFunc(void*) { if(body.get_string("Mail", b, 10)) { NotifyMail(); } + if(body.get_string("ProfileComment", b, 10)) { + NotifyProfileComment(); + } + if(body.get_string("FriendRequest", b, 10)) { + NotifyFriendRequest(); + } + if(DBGetContactSettingByte(0, MODULE, "DebugMail", 0)) { + char pmsg[512]; + for(LinkedList::Iterator i = body.start(); i.has_val(); i.next()) { + KeyValue &kv = i.val(); + mir_snprintf(pmsg, 512, "%s = %s", kv.first.text, kv.second.text); + PUShowMessage(pmsg, SM_NOTIFY); + } + } } } buffer_bytes -= (end - pbuff); -- cgit v1.2.3