comparison libpurple/protocols/msn/slp.c @ 26517:3609fb4bc78e

Inform the user when someone tries to initiate a video call with them in msn.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Wed, 08 Apr 2009 22:49:14 +0000
parents 809de3ab85d1
children 35b6fd563056
comparison
equal deleted inserted replaced
26516:e15d189020c9 26517:3609fb4bc78e
375 375
376 xfer->data = slpcall; 376 xfer->data = slpcall;
377 377
378 purple_xfer_request(xfer); 378 purple_xfer_request(xfer);
379 } 379 }
380 } else if (!strcmp(euf_guid, MSN_CAM_REQUEST_GUID)) {
381 purple_debug_info("msn", "Cam request.\n");
382 if (slpcall && slpcall->slplink &&
383 slpcall->slplink->session) {
384 PurpleConversation *conv;
385 gchar *from = slpcall->slplink->remote_user;
386 conv = purple_find_conversation_with_account(
387 PURPLE_CONV_TYPE_IM, from,
388 slpcall->slplink->session->account);
389 if (conv) {
390 char *buf;
391 buf = g_strdup_printf(
392 _("%s requests to view your "
393 "webcam, but this request is "
394 "not yet supported."), from);
395 purple_conversation_write(conv, NULL, buf,
396 PURPLE_MESSAGE_SYSTEM |
397 PURPLE_MESSAGE_NOTIFY,
398 time(NULL));
399 g_free(buf);
400 }
401 }
402 } else if (!strcmp(euf_guid, MSN_CAM_GUID)) {
403 purple_debug_info("msn", "Cam invite.\n");
404 if (slpcall && slpcall->slplink &&
405 slpcall->slplink->session) {
406 PurpleConversation *conv;
407 gchar *from = slpcall->slplink->remote_user;
408 conv = purple_find_conversation_with_account(
409 PURPLE_CONV_TYPE_IM, from,
410 slpcall->slplink->session->account);
411 if (conv) {
412 char *buf;
413 buf = g_strdup_printf(
414 _("%s has sent you a webcam "
415 "invite, which is not yet "
416 "supported."), from);
417 purple_conversation_write(conv, NULL, buf,
418 PURPLE_MESSAGE_SYSTEM |
419 PURPLE_MESSAGE_NOTIFY,
420 time(NULL));
421 g_free(buf);
422 }
423 }
380 } else 424 } else
381 purple_debug_warning("msn", "SLP SessionReq with unknown EUF-GUID: %s\n", euf_guid); 425 purple_debug_warning("msn", "SLP SessionReq with unknown EUF-GUID: %s\n", euf_guid);
382 } 426 }
383 427
384 void 428 void