Sun, 12 Jul 2009 22:25:44 +0000
We have a convenience function to do this. Also, plug a leak of the status
message on Google Talk when a buddy has a tune set.
| libpurple/protocols/jabber/google.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/jabber/google.c Sun Jul 12 20:03:43 2009 +0000 +++ b/libpurple/protocols/jabber/google.c Sun Jul 12 22:25:44 2009 +0000 @@ -1290,9 +1290,10 @@ { if (!js->googletalk) return; - if (jbr->status && !strncmp(jbr->status, "♫ ", strlen("♫ "))) { + if (jbr->status && purple_str_has_prefix(jbr->status, "♫ ")) { purple_prpl_got_user_status(js->gc->account, user, "tune", PURPLE_TUNE_TITLE, jbr->status + strlen("♫ "), NULL); + g_free(jbr->status); jbr->status = NULL; } else { purple_prpl_got_user_status_deactive(js->gc->account, user, "tune");