Mercurial > pidgin
changeset 2817:8ceb67d1645e
[gaim-migrate @ 2830]
linefeed
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 29 Nov 2001 23:17:09 +0000 |
parents | 08048a6922da |
children | c7fd8871c0a5 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Thu Nov 29 20:55:39 2001 +0000 +++ b/src/protocols/oscar/oscar.c Thu Nov 29 23:17:09 2001 +0000 @@ -1339,6 +1339,7 @@ } else g_snprintf(tmp, BUF_LONG, "%s", args->msg); + strip_linefeed(tmp); serv_got_im(gc, userinfo->sn, tmp, flags, time(NULL)); g_free(tmp); @@ -2063,9 +2064,12 @@ if (msg->type == 0x0001) { char sender[32]; + char *tmp = g_strdup(msg->msg); time_t t = get_time(msg->year, msg->month, msg->day, msg->hour, msg->minute, 0); g_snprintf(sender, sizeof(sender), "%lu", msg->sender); - serv_got_im(gc, sender, msg->msg, 0, t); + strip_linefeed(tmp); + serv_got_im(gc, sender, tmp, 0, t); + g_free(tmp); } else { debug_printf("unknown offline message type 0x%04x\n", msg->type); }