pidgin: 31eed8be: We have a convenience function to do thi...

qulogic at pidgin.im qulogic at pidgin.im
Mon Jul 13 02:01:06 EDT 2009


-----------------------------------------------------------------
Revision: 31eed8bec18c67fd40661690e0fb15632bbc1965
Ancestor: cd3eddd0c008eb2a1d8776b7d30c45e84586a5d6
Author: qulogic at pidgin.im
Date: 2009-07-12T22:25:44
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/31eed8bec18c67fd40661690e0fb15632bbc1965

Modified files:
        libpurple/protocols/jabber/google.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google.c	3c064536ee48e0d09e1c9f1a50b69c071a2db8f2
+++ libpurple/protocols/jabber/google.c	80dd953342094a19aed54140a883172ba5534bf0
@@ -1290,9 +1290,10 @@ void jabber_google_presence_incoming(Jab
 {
 	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");


More information about the Commits mailing list