X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=conversation_cbs.pxd;h=4f8852ab22cd2b0d3d60568c99b60fa0d3119ead;hp=8e6888360029b50f2f37f3f022af539f898e5b0f;hb=dd446d6d03c2c550010993a4e949007c242ecbe7;hpb=95706d11d3cf2af02aa6ee2a8e25d36e55ccc1d1;ds=sidebyside diff --git a/conversation_cbs.pxd b/conversation_cbs.pxd index 8e68883..4f8852a 100644 --- a/conversation_cbs.pxd +++ b/conversation_cbs.pxd @@ -30,7 +30,7 @@ cdef void create_conversation (conversation.PurpleConversation *conv): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "conversation", "create_conversation\n") try: - (conversation_cbs["create_conversation"])("create_conversation") + (conversation_cbs["create_conversation"])(conv.name, conv.type) except KeyError: pass @@ -56,8 +56,12 @@ cdef void write_im (conversation.PurpleConversation *conv, const_char *who, const_char *message, conversation.PurpleMessageFlags flags, time_t mtime): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "conversation", "write_im\n") + if who: + sender = who + else: + sender = None try: - (conversation_cbs["write_im"])(conv.account.username, message) + (conversation_cbs["write_im"])(conv.account.username, sender, message) except KeyError: pass