changeset 18885:644144f1a5c2

Use the right message in the persistance command for adding buddies, but conditionally-compile it out because the server returns an Invalid uid in persistance request error (even though it appears to be inserted correctly).
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Tue, 07 Aug 2007 04:48:16 +0000
parents 2c389d153edd
children c9da1580687c
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Tue Aug 07 04:43:20 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Tue Aug 07 04:48:16 2007 +0000
@@ -2848,7 +2848,7 @@
 {
 	MsimSession *session;
 	MsimMessage *msg;
-    MsimMessage	*msg_blocklist;
+    MsimMessage	*msg_persist;
     MsimMessage *body;
 
 	session = (MsimSession *)gc->proto_data;
@@ -2882,8 +2882,10 @@
             "NameSelect", MSIM_TYPE_INTEGER, 0,
             NULL);
 
-	/* Update blocklist. */
-	msg_blocklist = msim_msg_new(TRUE,
+	/* TODO: Update blocklist. */
+
+#if 0
+	msg_persist = msim_msg_new(TRUE,
 		"persist", MSIM_TYPE_INTEGER, 1,
 		"sesskey", MSIM_TYPE_INTEGER, session->sesskey,
 		"cmd", MSIM_TYPE_INTEGER, MSIM_CMD_BIT_ACTION | MSIM_CMD_PUT,
@@ -2894,13 +2896,15 @@
 		"body", MSIM_TYPE_DICTIONARY, body,
         NULL);
 
-	if (!msim_postprocess_outgoing(session, msg, buddy->name, "body", NULL))
+	if (!msim_postprocess_outgoing(session, msg_persist, buddy->name, "body", NULL))
 	{
 		purple_notify_error(NULL, NULL, _("Failed to add buddy"), _("persist command failed"));
-		msim_msg_free(msg_blocklist);
+		msim_msg_free(msg_persist);
 		return;
 	}
-	msim_msg_free(msg_blocklist);
+	msim_msg_free(msg_persist);
+#endif
+
 }
 
 /** Perform actual postprocessing on a message, adding userid as specified.