changeset 2715:e901fd3ebbad

[gaim-migrate @ 2728] this is what the old one did committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 14 Nov 2001 06:20:56 +0000
parents 8074f7ae5d3a
children 48274976c79b
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Wed Nov 14 00:28:07 2001 +0000
+++ b/src/protocols/yahoo/yahoo.c	Wed Nov 14 06:20:56 2001 +0000
@@ -483,7 +483,18 @@
 	}
 
 	if (pkt->status == 1) {
+		char *m;
+		int i, j;
 		strip_linefeed(msg);
+		m = msg;
+		for (i = 0, j = 0; m[i]; i++) {
+			if (m[i] == 033) {
+				while (m[i] != 'm')
+					i++;
+				continue;
+			}
+			msg[j++] = m[i];
+		}
 		serv_got_im(gc, from, msg, 0, tm);
 	} else if (pkt->status == 2) {
 		do_error_dialog(_("Your message did not get sent."), _("Gaim - Error"));