comparison libpurple/protocols/msn/notification.c @ 27115:5bc1f2ae4b19

Remove some cosmetic differences between msg_cmd() and ubm_cmd()
author Mark Doliner <mark@kingant.net>
date Thu, 18 Jun 2009 20:37:39 +0000
parents b9c64694999d
children 01f1929d0936
comparison
equal deleted inserted replaced
27114:8a1bf314f89b 27115:5bc1f2ae4b19
325 purple_debug_info("msn", "Processing MSG... \n"); 325 purple_debug_info("msn", "Processing MSG... \n");
326 326
327 /* NOTE: cmd is not always cmdproc->last_cmd, sometimes cmd is a queued 327 /* NOTE: cmd is not always cmdproc->last_cmd, sometimes cmd is a queued
328 * command and we are processing it */ 328 * command and we are processing it */
329 if (cmd->payload == NULL) { 329 if (cmd->payload == NULL) {
330 cmdproc->last_cmd->payload_cb = msg_cmd_post; 330 cmdproc->last_cmd->payload_cb = msg_cmd_post;
331 cmd->payload_len = atoi(cmd->params[2]); 331 cmd->payload_len = atoi(cmd->params[2]);
332
333 } else { 332 } else {
334 g_return_if_fail(cmd->payload_cb != NULL); 333 g_return_if_fail(cmd->payload_cb != NULL);
335 334
336 #if 0 /* glib on win32 doesn't correctly support precision modifiers for a string */ 335 #if 0 /* glib on win32 doesn't correctly support precision modifiers for a string */
337 purple_debug_info("msn", "MSG payload:{%.*s}\n", cmd->payload_len, cmd->payload); 336 purple_debug_info("msn", "MSG payload:{%.*s}\n", (guint)cmd->payload_len, cmd->payload);
338 #endif 337 #endif
339 cmd->payload_cb(cmdproc, cmd, cmd->payload, cmd->payload_len); 338 cmd->payload_cb(cmdproc, cmd, cmd->payload, cmd->payload_len);
340 } 339 }
341 } 340 }
342 341