Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/google.c @ 20571:c97e3ab9ef11
Music support for Google Talk
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 20 Sep 2007 23:22:35 +0000 |
parents | 5b35273d145f |
children | 707cd521188a |
comparison
equal
deleted
inserted
replaced
20570:5913725cbcd6 | 20571:c97e3ab9ef11 |
---|---|
515 str = g_string_append_unichar(str, c); | 515 str = g_string_append_unichar(str, c); |
516 } | 516 } |
517 } | 517 } |
518 return g_string_free(str, FALSE); | 518 return g_string_free(str, FALSE); |
519 } | 519 } |
520 | |
521 void jabber_google_presence_incoming(JabberStream *js, const char *user, JabberBuddyResource *jbr) | |
522 { | |
523 if (!js->googletalk) | |
524 return; | |
525 if (jbr->status && !strncmp(jbr->status, "♫ ", strlen("♫ "))) { | |
526 purple_prpl_got_user_status(js->gc->account, user, "tune", | |
527 PURPLE_TUNE_TITLE, jbr->status + strlen("♫ "), NULL); | |
528 jbr->status = NULL; | |
529 } else { | |
530 purple_prpl_got_user_status_deactive(js->gc->account, user, "tune"); | |
531 } | |
532 } | |
533 | |
534 char *jabber_google_presence_outgoing(PurpleStatus *tune) | |
535 { | |
536 char *ret = g_strdup_printf("♫ %s", purple_status_get_attr_string(tune, PURPLE_TUNE_TITLE)); | |
537 return ret; | |
538 } |