X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=conversation_cbs.pxd;h=71df18d25b966d86343e45ea0f10d0d8a82a30b2;hp=b230d81e158e1c967d6d9abc5c3625720c91a322;hb=57f19907e84e7f0d2af05953fdddc6bf97febfc0;hpb=824a5557c0aac16a1bde0f1c20505ace55f7805e diff --git a/conversation_cbs.pxd b/conversation_cbs.pxd index b230d81..71df18d 100644 --- a/conversation_cbs.pxd +++ b/conversation_cbs.pxd @@ -67,7 +67,7 @@ cdef void write_im (conversation.PurpleConversation *conv, const_char *who, time_t mtime): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "conversation", "write-im\n") cdef account.PurpleAccount *acc = conversation.c_purple_conversation_get_account(conv) - cdef blist.PurpleBuddy *buddy = blist.c_purple_find_buddy(acc, who) + cdef blist.PurpleBuddy *buddy = NULL cdef char *c_username = NULL cdef char *c_sender_alias = NULL @@ -79,6 +79,7 @@ cdef void write_im (conversation.PurpleConversation *conv, const_char *who, if who: sender = who + buddy = blist.c_purple_find_buddy(acc, who) c_sender_alias = blist.c_purple_buddy_get_alias_only(buddy) else: sender = None