comparison libpurple/protocols/msn/notification.c @ 24477:606d3194f92b

Counting is for dummies
author Mark Doliner <mark@kingant.net>
date Tue, 18 Nov 2008 23:34:14 +0000
parents caf82c1cebf2
children f7674c9c2646
comparison
equal deleted inserted replaced
24476:3d6fe79753c3 24477:606d3194f92b
489 489
490 /* NOTE: cmd is not always cmdproc->last_cmd, sometimes cmd is a queued 490 /* NOTE: cmd is not always cmdproc->last_cmd, sometimes cmd is a queued
491 * command and we are processing it */ 491 * command and we are processing it */
492 if (cmd->payload == NULL) { 492 if (cmd->payload == NULL) {
493 cmdproc->last_cmd->payload_cb = msg_cmd_post; 493 cmdproc->last_cmd->payload_cb = msg_cmd_post;
494 cmd->payload_len = cmd->param_count >= 4 ? atoi(cmd->params[4]) : 0; 494 cmd->payload_len = cmd->param_count >= 5 ? atoi(cmd->params[4]) : 0;
495 } else { 495 } else {
496 g_return_if_fail(cmd->payload_cb != NULL); 496 g_return_if_fail(cmd->payload_cb != NULL);
497 497
498 purple_debug_info("msn", "UBM payload:{%.*s}\n", (guint)(cmd->payload_len), cmd->payload); 498 purple_debug_info("msn", "UBM payload:{%.*s}\n", (guint)(cmd->payload_len), cmd->payload);
499 msg_cmd_post(cmdproc, cmd, cmd->payload, cmd->payload_len); 499 msg_cmd_post(cmdproc, cmd, cmd->payload, cmd->payload_len);