diff libpurple/protocols/jabber/jabber.c @ 21978:cacc01b50a23

Fixes for incorrectly displaying user tune emblem and empty current media. We now send an empty tune when not listening to any music, don't interpret empty tune information as valid tune info and deactivate the "tune" status when receiving empty tune information.
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 03 Jan 2008 18:31:58 +0000
parents 966f98d4b04b
children af0426c34c27
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Thu Jan 03 11:12:36 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Thu Jan 03 18:31:58 2008 +0000
@@ -614,7 +614,7 @@
 	js->user = jabber_id_new(purple_account_get_username(account));
 	js->next_id = g_random_int();
 	js->write_buffer = purple_circ_buffer_new(512);
-	js->old_length = -1;
+	js->old_length = 0;
 	js->keepalive_timeout = -1;
 
 	if(!js->user) {
@@ -1100,7 +1100,7 @@
 			g_free, g_free);
 	js->user = jabber_id_new(purple_account_get_username(account));
 	js->next_id = g_random_int();
-	js->old_length = -1;
+	js->old_length = 0;
 
 	if(!js->user) {
 		purple_connection_error_reason (gc,