# HG changeset patch # User Sadrul Habib Chowdhury # Date 1188017875 0 # Node ID 3489182dc1879a5ad2596294c7382352202a0c6d # Parent 2128daf52d31fe1830e527ffe84185c7b1bc9c2d A conversation shouldn't need ui-ops for logging the messages. diff -r 2128daf52d31 -r 3489182dc187 libpurple/conversation.c --- a/libpurple/conversation.c Sat Aug 25 04:53:45 2007 +0000 +++ b/libpurple/conversation.c Sat Aug 25 04:57:55 2007 +0000 @@ -842,9 +842,6 @@ ops = purple_conversation_get_ui_ops(conv); - if (ops == NULL || ops->write_conv == NULL) - return; - account = purple_conversation_get_account(conv); type = purple_conversation_get_type(conv); @@ -928,7 +925,8 @@ } } - ops->write_conv(conv, who, alias, displayed, flags, mtime); + if (ops && ops->write_conv) + ops->write_conv(conv, who, alias, displayed, flags, mtime); add_message_to_history(conv, who, message, flags, mtime); purple_signal_emit(purple_conversations_get_handle(),