Mercurial > pidgin.yaz
changeset 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 | 2128daf52d31 |
children | f3f78f43b822 |
files | libpurple/conversation.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
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(),