X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=conversation_cbs.pxd;h=f3a6bd7ff12e5d3a4fb06e5ef752f7a0fc8f894d;hp=f85ac1c3881f3af96c4d1f8fa504bda1105eef6f;hb=8c0353cd18905a1e49fc3116b5a98b319ba3a380;hpb=fe31cc60e134bb3cb2794866f81acd2686307756 diff --git a/conversation_cbs.pxd b/conversation_cbs.pxd index f85ac1c..f3a6bd7 100644 --- a/conversation_cbs.pxd +++ b/conversation_cbs.pxd @@ -103,9 +103,15 @@ cdef void write_im(conversation.PurpleConversation *conv, const_char *who, \ else: message = None + # FIXME: Maybe we need add more purple flags in the future + if flags & conversation.PURPLE_MESSAGE_SEND: + flag = "SEND" + else: + flag = "RECV" + if conversation_cbs.has_key("write-im"): ( conversation_cbs["write-im"])(username, sender, \ - sender_alias, message) + sender_alias, message, flag) cdef void write_conv(conversation.PurpleConversation *conv, const_char *name, \ const_char *alias, const_char *message, \