comparison libpurple/protocols/msnp9/command.c @ 23523:9fa6ce44149f

Also commit the change from b062f14d1bcd8e6c28b2b05977aa19a4bfd4867c to the msnp9 version. References #5545.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 12 Jul 2008 07:29:38 +0000
parents a07cfce78345
children 8983eefa62c5
comparison
equal deleted inserted replaced
23494:c1cba867b3da 23523:9fa6ce44149f
63 int c; 63 int c;
64 64
65 for (c = 0; cmd->params[c]; c++); 65 for (c = 0; cmd->params[c]; c++);
66 cmd->param_count = c; 66 cmd->param_count = c;
67 67
68 param = cmd->params[0]; 68 if (cmd->param_count) {
69 69 char *param = cmd->params[0];
70 cmd->trId = is_num(param) ? atoi(param) : 0; 70 cmd->trId = is_num(param) ? atoi(param) : 0;
71 } else {
72 cmd->trId = 0;
73 }
71 } 74 }
72 else 75 else
73 cmd->trId = 0; 76 cmd->trId = 0;
74 77
75 msn_command_ref(cmd); 78 msn_command_ref(cmd);