X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=conversation_cbs.pxd;h=f3a6bd7ff12e5d3a4fb06e5ef752f7a0fc8f894d;hp=f85ac1c3881f3af96c4d1f8fa504bda1105eef6f;hb=95a2c7200a5259e33c549ddb5024ec4f7bae8648;hpb=4908a8a434d0468f59a1ec3222444fee47675f16 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, \