Mercurial > pidgin.yaz
diff libpurple/conversation.c @ 27759:54479172725e
propagate from branch 'im.pidgin.pidgin' (head 1991213a0cb9c2d4b066d5acb8e5b5fb77b1470b)
to branch 'im.pidgin.pidgin.yaz' (head 763b20083fe3c16d255b68bb30d8e5f75f14a755)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 10 Jan 2008 05:32:41 +0000 |
parents | fbef14f35c78 98604b4bfa3b |
children | ed6de6a3604f |
line wrap: on
line diff
--- a/libpurple/conversation.c Thu Jan 10 02:28:48 2008 +0000 +++ b/libpurple/conversation.c Thu Jan 10 05:32:41 2008 +0000 @@ -1146,17 +1146,27 @@ PurpleMessageFlags flags, time_t mtime) { PurpleConversation *c; + char *tmpmessage = NULL; g_return_if_fail(im != NULL); g_return_if_fail(message != NULL); c = purple_conv_im_get_conversation(im); + // yaz + if (purple_prefs_get_bool("/purple/conversations/msnstyle")) { + tmpmessage = g_strdup_printf("<br>%s", message); + } else { + tmpmessage = g_strdup_printf("%s", message); + } + /* Pass this on to either the ops structure or the default write func. */ if (c->ui_ops != NULL && c->ui_ops->write_im != NULL) - c->ui_ops->write_im(c, who, message, flags, mtime); + c->ui_ops->write_im(c, who, tmpmessage, flags, mtime); else - purple_conversation_write(c, who, message, flags, mtime); + purple_conversation_write(c, who, tmpmessage, flags, mtime); + + g_free(tmpmessage); } gboolean purple_conv_present_error(const char *who, PurpleAccount *account, const char *what)