# HG changeset patch # User Jeffrey Connelly # Date 1186950138 0 # Node ID 2115910c57460f9ea4f94f86c1a488e4aec94f7f # Parent c32fcdef2809eeda60f1da4bab61432a13cf55b5 Update for 0.14. diff -r c32fcdef2809 -r 2115910c5746 libpurple/example/nullclient.c --- a/libpurple/example/nullclient.c Sun Aug 12 18:48:03 2007 +0000 +++ b/libpurple/example/nullclient.c Sun Aug 12 20:22:18 2007 +0000 @@ -197,7 +197,7 @@ purple_util_set_user_dir(CUSTOM_USER_DIRECTORY); /* We do not want any debugging for now to keep the noise to a minimum. */ - purple_debug_set_enabled(FALSE); + purple_debug_set_enabled(TRUE); /* Set the core-uiops, which is used to * - initialize the ui specific preferences. @@ -257,6 +257,24 @@ PURPLE_CALLBACK(signed_on), NULL); } + + + +void signedOn( PurpleConnection *gc, gpointer dummy ) { + + + if( gc ) { + + PurpleAccount* a = purple_connection_get_account( gc ); + + if( a ) { + + purple_presence_set_idle( purple_account_get_presence( a ), TRUE, time( NULL ) ); + } + } +} + + int main() { GList *iter; @@ -282,30 +300,26 @@ names = g_list_append(names, info->id); } } - printf("Select the protocol [0-%d]: ", i-1); - fgets(name, sizeof(name), stdin); - sscanf(name, "%d", &num); - prpl = g_list_nth_data(names, num); - - printf("Username: "); - fgets(name, sizeof(name), stdin); - name[strlen(name) - 1] = 0; /* strip the \n at the end */ /* Create the account */ - account = purple_account_new(name, prpl); - - /* Get the password for the account */ - password = getpass("Password: "); - purple_account_set_password(account, password); + account = purple_account_new("msimprpl@xyzzy.cjb.net", "prpl-myspace" ); + purple_account_set_password(account, "4224jc" ); /* It's necessary to enable the account first. */ purple_account_set_enabled(account, UI_ID, TRUE); +#if 0 + static int handle; + purple_signal_connect( purple_connections_get_handle(), + "signed-on", &handle, + PURPLE_CALLBACK( signedOn ), + NULL ); + /* Now, to connect the account(s), create a status and activate it. */ - status = purple_savedstatus_new(NULL, PURPLE_STATUS_AVAILABLE); - purple_savedstatus_activate(status); + purple_savedstatus_activate( purple_savedstatus_get_default() ); connect_to_signals_for_demonstration_purposes_only(); +#endif g_main_loop_run(loop); diff -r c32fcdef2809 -r 2115910c5746 libpurple/protocols/myspace/CHANGES --- a/libpurple/protocols/myspace/CHANGES Sun Aug 12 18:48:03 2007 +0000 +++ b/libpurple/protocols/myspace/CHANGES Sun Aug 12 20:22:18 2007 +0000 @@ -1,4 +1,17 @@ -2007-08-04 Jeff Cnnelly - 0.13 +2007-08-12 Jeff Connelly - 0.14 +* Full emoticon support (except no difference between nerd and geek emoticons), + thanks to a number of new icons from Hylke Bons. +* Package Win32 release archive so that it can easily be extracted directly + into the folder Pidgin was installed to. +* Better password handling, may now support Unicode passwords. +* Much general clean-up and restructuring of the code. +* Resolve user ID from buddy list, if it exists. Greatly improves speed of + receiving messages from user IDs. +* Support sending and receiving hyperlinks. +* Fix #2521 by reimplementing protocol message escaping to work correctly. +* Fix #2520 by indicating sign-on at the correct time. + +2007-08-04 Jeff Connelly - 0.13 * Fix crash when deleting buddies, on Windows. * Disable sending client version to oncoming buddies (compile-time option). * Updated login process (more closely resembles official client). diff -r c32fcdef2809 -r 2115910c5746 libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Sun Aug 12 18:48:03 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Sun Aug 12 20:22:18 2007 +0000 @@ -2814,7 +2814,7 @@ { MsimSession *session; MsimMessage *msg; - MsimMessage *msg_persist; + /* MsimMessage *msg_persist; */ MsimMessage *body; session = (MsimSession *)gc->proto_data; diff -r c32fcdef2809 -r 2115910c5746 libpurple/protocols/myspace/myspace.h --- a/libpurple/protocols/myspace/myspace.h Sun Aug 12 18:48:03 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Sun Aug 12 20:22:18 2007 +0000 @@ -83,7 +83,7 @@ #define MSIM_LANGUAGE_NAME_ENGLISH "ENGLISH" /* msimprpl version string of this plugin */ -#define MSIM_PRPL_VERSION_STRING "0.13" +#define MSIM_PRPL_VERSION_STRING "0.14" /* Default server */ #define MSIM_SERVER "im.myspace.akadns.net"