summaryrefslogtreecommitdiff
path: root/MySpace/server_con.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-08 17:27:12 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-08 17:27:12 +0000
commit37be3cf3d8e43198e577a85a6f2c6e12e8dd59db (patch)
treeeec4448e7a3fdc127be1c508a6685f6d3ff67fe9 /MySpace/server_con.cpp
parent6b0cd0f2c3077d45cf86f413fdb35d2de2f1ae2e (diff)
added profile comment and friend request notifications
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@260 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'MySpace/server_con.cpp')
-rw-r--r--MySpace/server_con.cpp14
1 files changed, 14 insertions, 0 deletions
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<KeyValue>::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);