comparison libpurple/protocols/jabber/message.c @ 25207:1dda1c292c50

Removed a few unnessesary lines of code.
author Marcus Lundblad <ml@update.uu.se>
date Tue, 24 Feb 2009 22:19:49 +0000
parents b707ec143eee
children 5f9a24d1c25e
comparison
equal deleted inserted replaced
25206:ba0289e94bdf 25207:1dda1c292c50
287 } 287 }
288 288
289 static void handle_buzz(JabberMessage *jm) { 289 static void handle_buzz(JabberMessage *jm) {
290 PurpleBuddy *buddy; 290 PurpleBuddy *buddy;
291 PurpleAccount *account; 291 PurpleAccount *account;
292 PurpleConversation *c;
293 292
294 /* Delayed buzz MUST NOT be accepted */ 293 /* Delayed buzz MUST NOT be accepted */
295 if(jm->delayed) 294 if(jm->delayed)
296 return; 295 return;
297 296
301 300
302 account = purple_connection_get_account(jm->js->gc); 301 account = purple_connection_get_account(jm->js->gc);
303 302
304 if ((buddy = purple_find_buddy(account, jm->from)) == NULL) 303 if ((buddy = purple_find_buddy(account, jm->from)) == NULL)
305 return; /* Do not accept buzzes from unknown people */ 304 return; /* Do not accept buzzes from unknown people */
306
307 c = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, jm->from, account);
308 if (c == NULL)
309 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, jm->from);
310 305
311 /* xmpp only has 1 attention type, so index is 0 */ 306 /* xmpp only has 1 attention type, so index is 0 */
312 purple_prpl_got_attention(jm->js->gc, jm->from, 0); 307 purple_prpl_got_attention(jm->js->gc, jm->from, 0);
313 } 308 }
314 309