summaryrefslogtreecommitdiff
path: root/MySpace/proto.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-02 17:09:25 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-02 17:09:25 +0000
commit59e7fddf68763f1206e9cd9a104edf7569ed8a9c (patch)
tree0f4df7633159caa3883582580d08624e799a4151 /MySpace/proto.cpp
parent898692d3f745c9a3fdfff4f6e1bbe38f03693d0c (diff)
deal with temp contacts better
write userinfo data to db, and create 'ListeningTo' item git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@245 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'MySpace/proto.cpp')
-rw-r--r--MySpace/proto.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/MySpace/proto.cpp b/MySpace/proto.cpp
index 80b6ea0..c7133a3 100644
--- a/MySpace/proto.cpp
+++ b/MySpace/proto.cpp
@@ -301,7 +301,17 @@ int AddToList(WPARAM wParam, LPARAM lParam) {
HANDLE hContact = FindContact(mpsr->uid);
if(!hContact) {
- hContact = CreateContact(mpsr->uid, mpsr->psr.nick, mpsr->psr.email, true);
+ hContact = CreateContact(mpsr->uid, mpsr->psr.nick, mpsr->psr.email, temp ? false : true);
+ } else {
+ if(!temp) {
+ ClientNetMessage msg_add;
+ msg_add.add_string("addbuddy", "");
+ msg_add.add_int("sesskey", sesskey);
+ msg_add.add_int("newprofileid", DBGetContactSettingDword(hContact, MODULE, "UID", 0));
+ msg_add.add_string("reason", "");
+
+ SendMessage(msg_add);
+ }
}
if(temp) {