Mercurial > pidgin
comparison libpurple/protocols/qq/qq_process.c @ 24639:9f2149adcac2
Clean debug info
author | Hu Yong <ccpaging@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 08:32:34 +0000 |
parents | 2457411cc613 |
children | c9a71b032496 |
comparison
equal
deleted
inserted
replaced
24638:c69c337269e1 | 24639:9f2149adcac2 |
---|---|
129 gint bytes; | 129 gint bytes; |
130 gchar *mobile = NULL; | 130 gchar *mobile = NULL; |
131 gchar *msg = NULL; | 131 gchar *msg = NULL; |
132 gchar *msg_utf8 = NULL; | 132 gchar *msg_utf8 = NULL; |
133 gchar *msg_formated; | 133 gchar *msg_formated; |
134 | 134 |
135 g_return_if_fail(data != NULL && data_len > 26); | 135 g_return_if_fail(data != NULL && data_len > 26); |
136 | 136 |
137 qq_show_packet("Rcv sms", data, data_len); | 137 qq_show_packet("Rcv sms", data, data_len); |
138 | 138 |
139 bytes = 0; | 139 bytes = 0; |
608 | 608 |
609 if (next_id <= 0) { | 609 if (next_id <= 0) { |
610 if (room_id > 0) { | 610 if (room_id > 0) { |
611 is_new_turn = TRUE; | 611 is_new_turn = TRUE; |
612 next_id = qq_room_get_next(gc, 0); | 612 next_id = qq_room_get_next(gc, 0); |
613 purple_debug_info("QQ", "new turn, id %u\n", next_id); | 613 purple_debug_info("QQ", "New turn, id %u\n", next_id); |
614 } else { | 614 } else { |
615 purple_debug_info("QQ", "No room. Finished update\n"); | 615 purple_debug_info("QQ", "No room. Finished update\n"); |
616 return; | 616 return; |
617 } | 617 } |
618 } | 618 } |
974 case QQ_CMD_CHECK_PWD: | 974 case QQ_CMD_CHECK_PWD: |
975 ret_8 = qq_process_check_pwd(gc, data, data_len); | 975 ret_8 = qq_process_check_pwd(gc, data, data_len); |
976 if (ret_8 != QQ_LOGIN_REPLY_OK) { | 976 if (ret_8 != QQ_LOGIN_REPLY_OK) { |
977 return ret_8; | 977 return ret_8; |
978 } | 978 } |
979 if (qd->client_version == 2008) { | 979 if (qd->client_version >= 2008) { |
980 qq_request_login_2008(gc); | 980 qq_request_login_2008(gc); |
981 } else { | 981 } else { |
982 qq_request_login_2007(gc); | 982 qq_request_login_2007(gc); |
983 } | 983 } |
984 break; | 984 break; |
985 case QQ_CMD_LOGIN: | 985 case QQ_CMD_LOGIN: |
986 if (qd->client_version == 2008) { | 986 if (qd->client_version >= 2008) { |
987 ret_8 = qq_process_login_2008(gc, data, data_len); | 987 ret_8 = qq_process_login_2008(gc, data, data_len); |
988 if ( ret_8 == QQ_LOGIN_REPLY_REDIRECT) { | 988 if ( ret_8 == QQ_LOGIN_REPLY_REDIRECT) { |
989 qq_request_get_server(gc); | 989 qq_request_get_server(gc); |
990 return QQ_LOGIN_REPLY_OK; | 990 return QQ_LOGIN_REPLY_OK; |
991 } | 991 } |
992 } else if (qd->client_version == 2007) { | 992 } else if (qd->client_version >= 2007) { |
993 ret_8 = qq_process_login_2007(gc, data, data_len); | 993 ret_8 = qq_process_login_2007(gc, data, data_len); |
994 if ( ret_8 == QQ_LOGIN_REPLY_REDIRECT) { | 994 if ( ret_8 == QQ_LOGIN_REPLY_REDIRECT) { |
995 qq_request_get_server(gc); | 995 qq_request_get_server(gc); |
996 return QQ_LOGIN_REPLY_OK; | 996 return QQ_LOGIN_REPLY_OK; |
997 } | 997 } |