changeset 18910:2115910c5746

Update for 0.14.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sun, 12 Aug 2007 20:22:18 +0000
parents c32fcdef2809
children 692b128fe74a
files libpurple/example/nullclient.c libpurple/protocols/myspace/CHANGES libpurple/protocols/myspace/myspace.c libpurple/protocols/myspace/myspace.h
diffstat 4 files changed, 46 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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 <jeff2@soc.pidgin.im> - 0.13
+2007-08-12 Jeff Connelly <jeff2@soc.pidgin.im> - 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 <jeff2@soc.pidgin.im> - 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).
--- 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;
--- 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"