Mercurial > pidgin.yaz
changeset 1887:5df1e36f26e1
[gaim-migrate @ 1897]
bastards.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 24 May 2001 08:24:48 +0000 |
parents | 318d6240ffe3 |
children | dedcd9e6f3e8 |
files | src/oscar.c |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oscar.c Thu May 24 01:03:40 2001 +0000 +++ b/src/oscar.c Thu May 24 08:24:48 2001 +0000 @@ -2486,6 +2486,8 @@ GSList *bcs = g->buddy_chats; struct conversation *b = NULL; struct chat_connection *c = NULL; + char *buf; + int i, j; while (bcs) { b = (struct conversation *)bcs->data; @@ -2508,7 +2510,20 @@ if (!c) return; - aim_chat_send_im(odata->sess, c->conn, 0, message, strlen(message)); + buf = g_malloc(strlen(message) * 4 + 1); + for (i = 0, j = 0; i < strlen(message); i++) { + if (message[i] == '\n') { + buf[j++] = '<'; + buf[j++] = 'B'; + buf[j++] = 'R'; + buf[j++] = '>'; + } else { + buf[j++] = message[i]; + } + } + buf[j] = '\0'; + aim_chat_send_im(odata->sess, c->conn, 0, buf, strlen(buf)); + g_free(buf); } static char **oscar_list_icon(int uc) {