X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=conversation_cbs.pxd;h=4f8852ab22cd2b0d3d60568c99b60fa0d3119ead;hp=53729d23051077c10effa8d54d87b7f600342706;hb=dd446d6d03c2c550010993a4e949007c242ecbe7;hpb=bbd0f131da05d704e16ad19669fe7ef27a9ad6e0;ds=sidebyside diff --git a/conversation_cbs.pxd b/conversation_cbs.pxd index 53729d2..4f8852a 100644 --- a/conversation_cbs.pxd +++ b/conversation_cbs.pxd @@ -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