Mercurial > pidgin.yaz
diff src/protocols/msn/command.c @ 19740:23258253c7a0
[gaim-migrate @ 16546]
can login sucessfully
Other's can see the online status
Can chat with gaim.
Some bug exist! will crash
Some Problem existed on group management
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Sun, 23 Jul 2006 09:19:12 +0000 |
parents | 852b32710df0 |
children | da3f8f7ec3ce |
line wrap: on
line diff
--- a/src/protocols/msn/command.c Mon Jul 17 12:22:37 2006 +0000 +++ b/src/protocols/msn/command.c Sun Jul 23 09:19:12 2006 +0000 @@ -46,6 +46,7 @@ { if( (!strcmp(str,"ADL")) || (!strcmp(str,"GCF")) || + (!strcmp(str,"SG")) || (!strcmp(str,"MSG")) || (!strcmp(str,"RML")) || (!strcmp(str,"UBX")) || @@ -62,11 +63,13 @@ int msn_get_payload_position(char *str) { /*because MSG has "MSG hotmail hotmail [payload length]"*/ - if(!(strcmp(str,"MSG"))){ + if(!(strcmp(str,"MSG"))|| (!strcmp(str,"UBX")) ){ return 2; } + return 1; } + /* * set command Payload length */ @@ -76,11 +79,14 @@ char * param; if(msn_check_payload_cmd(cmd->command)){ + param = cmd->params[msn_get_payload_position(cmd->command)]; +#if 0 if(!(strcmp(cmd->command,"MSG"))){ param = cmd->params[2]; }else{ param = cmd->params[1]; } +#endif cmd->payload_len = is_num(param) ? atoi(param) : 0; }else{ cmd->payload_len = 0;