changeset 24587:9f2149adcac2

Clean debug info
author Hu Yong <ccpaging@gmail.com>
date Wed, 12 Nov 2008 08:32:34 +0000
parents c69c337269e1
children 2cfdcaf6b5f3
files libpurple/protocols/qq/qq_process.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq_process.c	Wed Nov 12 08:32:14 2008 +0000
+++ b/libpurple/protocols/qq/qq_process.c	Wed Nov 12 08:32:34 2008 +0000
@@ -131,7 +131,7 @@
 	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 @@
 		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 @@
 			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);