cpw.malu.xmpp.attention: cbf0c3bd: Removed a few unnessesary lines of code.

malu at pidgin.im malu at pidgin.im
Tue Feb 24 17:25:29 EST 2009


-----------------------------------------------------------------
Revision: cbf0c3bd9fb3c235c896517b27d6ea14b2993e19
Ancestor: e12dabd4f45949ffba2395e1b8c67c258ccddfbc
Author: malu at pidgin.im
Date: 2009-02-24T22:19:49
Branch: im.pidgin.cpw.malu.xmpp.attention
URL: http://d.pidgin.im/viewmtn/revision/info/cbf0c3bd9fb3c235c896517b27d6ea14b2993e19

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

ChangeLog: 

Removed a few unnessesary lines of code.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c	49dcd87c746553ee7630c5256159600f249ebab5
+++ libpurple/protocols/jabber/message.c	893d16aa8dd957b06fc79e846a30d35b4d3d90c6
@@ -289,7 +289,6 @@ static void handle_buzz(JabberMessage *j
 static void handle_buzz(JabberMessage *jm) {
 	PurpleBuddy *buddy;
 	PurpleAccount *account;
-	PurpleConversation *c;
 
 	/* Delayed buzz MUST NOT be accepted */
 	if(jm->delayed)
@@ -304,10 +303,6 @@ static void handle_buzz(JabberMessage *j
 	if ((buddy = purple_find_buddy(account, jm->from)) == NULL)
 		return; /* Do not accept buzzes from unknown people */
 
-	c = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, jm->from, account);
-	if (c == NULL)
-		c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, jm->from);
-
 	/* xmpp only has 1 attention type, so index is 0 */
 	purple_prpl_got_attention(jm->js->gc, jm->from, 0);
 }


More information about the Commits mailing list