# HG changeset patch # User Jeffrey Connelly # Date 1186462096 0 # Node ID 644144f1a5c2e231b86ca98a2e14cdcfa8a9a876 # Parent 2c389d153edde034baa5665247686012fb7928b4 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). diff -r 2c389d153edd -r 644144f1a5c2 libpurple/protocols/myspace/myspace.c --- 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.