Updated internal class attributes with correct naming.
[python-purple] / conversation_cbs.pxd
index 53729d2..4f8852a 100644 (file)
@@ -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 = <char *> who
+    else:
+        sender = None
     try:
-        (<object>conversation_cbs["write_im"])(conv.account.username, <char *> message)
+        (<object>conversation_cbs["write_im"])(conv.account.username, sender, <char *> message)
     except KeyError:
         pass