im.pidgin.pidgin.2.2.2: 800279cffbdd3f77820741bcecee364d3391b204

lschiere at pidgin.im lschiere at pidgin.im
Fri Oct 19 17:12:40 EDT 2007


-----------------------------------------------------------------
Revision: 800279cffbdd3f77820741bcecee364d3391b204
Ancestor: ba01a475b5298205283309f3c0aaf3dd8d1a54f1
Author: lschiere at pidgin.im
Date: 2007-10-19T17:28:26
Branch: im.pidgin.pidgin.2.2.2

Modified files:
        libpurple/protocols/msn/command.c

ChangeLog: 

disapproval of revision 'ba01a475b5298205283309f3c0aaf3dd8d1a54f1'
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/command.c	b3f2f9c938fd3ebb2f65d211aca00e11d70ee55e
+++ libpurple/protocols/msn/command.c	101a5c45600bfd0151f5a1c2f8f683df92e58288
@@ -36,52 +36,6 @@ is_num(char *str)
 	return TRUE;
 }
 
-/*
- * check the command is the command with payload content
- *  if it is	return TRUE
- *  else 		return FALSE
- */
-static gboolean
-msn_check_payload_cmd(const char *str)
-{
-	g_return_val_if_fail(str != NULL, FALSE);
-	if( (!strcmp(str,"ADL")) ||
-		(!strcmp(str,"GCF")) ||
-		(!strcmp(str,"SG")) ||
-		(!strcmp(str,"MSG")) ||
-		(!strcmp(str,"RML")) ||
-		(!strcmp(str,"UBX")) ||
-		(!strcmp(str,"UBN")) ||
-		(!strcmp(str,"UUM")) ||
-		(!strcmp(str,"UBM")) ||
-		(!strcmp(str,"FQY")) ||
-		(!strcmp(str,"UUN")) ||
-		(!strcmp(str,"UUX")) ||
-		(is_num(str))){
-			return TRUE;
-		}
-
-	return FALSE;
-}
-
-/*
- * set command Payload length
- */
-static void
-msn_set_payload_len(MsnCommand *cmd)
-{
-	char *param;
-	int len = 0;
-
-	if (msn_check_payload_cmd(cmd->command) && (cmd->param_count > 0)){
-		param = cmd->params[cmd->param_count - 1];
-		len = is_num(param) ? atoi(param) : 0;
-	}
-
-	cmd->payload_len = len;
-}
-
-
 MsnCommand *
 msn_command_from_string(const char *string)
 {
@@ -116,14 +70,8 @@ msn_command_from_string(const char *stri
 		cmd->trId = is_num(param) ? atoi(param) : 0;
 	}
 	else
-	{
 		cmd->trId = 0;
-	}
 
-	/*add payload Length checking*/
-	msn_set_payload_len(cmd);
-	purple_debug_info("MSNP14","get payload len:%d\n",cmd->payload_len);
-
 	msn_command_ref(cmd);
 
 	return cmd;


More information about the Commits mailing list