Mercurial > pidgin.yaz
diff libpurple/conversation.c @ 19416:3489182dc187
A conversation shouldn't need ui-ops for logging the messages.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 25 Aug 2007 04:57:55 +0000 |
parents | deb9471d7142 |
children | b33c2b085e78 |
line wrap: on
line diff
--- 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(),