pidgin.openq: 5e645592: Clean debug info

ccpaging at pidgin.im ccpaging at pidgin.im
Wed Dec 3 23:21:13 EST 2008


-----------------------------------------------------------------
Revision: 5e645592e512703b9a015fcb0149324946ed66b9
Ancestor: 9859f1c3e1f4baa7f42f36c7dc1b3aceb3472efb
Author: ccpaging at pidgin.im
Date: 2008-11-12T08:32:34
Branch: im.pidgin.pidgin.openq
URL: http://d.pidgin.im/viewmtn/revision/info/5e645592e512703b9a015fcb0149324946ed66b9

Modified files:
        libpurple/protocols/qq/qq_process.c

ChangeLog: 

Clean debug info

-------------- next part --------------
============================================================
--- libpurple/protocols/qq/qq_process.c	8d527a08c27cafaecce0d9458ad248399aadda05
+++ libpurple/protocols/qq/qq_process.c	21e3c7f31a05ad0a0497aa1860d8f6d8c383a9c2
@@ -131,7 +131,7 @@ static void do_got_sms(PurpleConnection 
 	gchar *msg = NULL;
 	gchar *msg_utf8 = NULL;
 	gchar *msg_formated;
-	
+
 	g_return_if_fail(data != NULL && data_len > 26);
 
 	qq_show_packet("Rcv sms", data, data_len);
@@ -610,7 +610,7 @@ void qq_update_all_rooms(PurpleConnectio
 		if (room_id > 0) {
 			is_new_turn = TRUE;
 			next_id = qq_room_get_next(gc, 0);
-			purple_debug_info("QQ", "new turn, id %u\n", next_id);
+			purple_debug_info("QQ", "New turn, id %u\n", next_id);
 		} else {
 			purple_debug_info("QQ", "No room. Finished update\n");
 			return;
@@ -976,20 +976,20 @@ guint8 qq_proc_login_cmds(PurpleConnecti
 			if (ret_8 != QQ_LOGIN_REPLY_OK) {
 				return ret_8;
 			}
-			if (qd->client_version == 2008) {
+			if (qd->client_version >= 2008) {
 				qq_request_login_2008(gc);
 			} else {
 				qq_request_login_2007(gc);
 			}
 			break;
 		case QQ_CMD_LOGIN:
-			if (qd->client_version == 2008) {
+			if (qd->client_version >= 2008) {
 				ret_8 = qq_process_login_2008(gc, data, data_len);
 				if ( ret_8 == QQ_LOGIN_REPLY_REDIRECT) {
                 		qq_request_get_server(gc);
                 		return QQ_LOGIN_REPLY_OK;
             	}
-			} else if (qd->client_version == 2007) {
+			} else if (qd->client_version >= 2007) {
 				ret_8 = qq_process_login_2007(gc, data, data_len);
 				if ( ret_8 == QQ_LOGIN_REPLY_REDIRECT) {
                 		qq_request_get_server(gc);


More information about the Commits mailing list