changeset 254:fa67d29b53d5

[gaim-migrate @ 264] Things don't need to be escaped for Oscar. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 23 May 2000 05:54:31 +0000
parents 5b28ef2b550e
children be4ac6d5c1b4
files src/util.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Tue May 23 05:26:30 2000 +0000
+++ b/src/util.c	Tue May 23 05:54:31 2000 +0000
@@ -400,8 +400,10 @@
 }
 
 
+/* we only need this for TOC, because messages must be escaped */
 int escape_message(char *msg)
 {
+#ifndef USE_OSCAR
 	char *c, *cpy;
 	int cnt=0;
 	/* Assumes you have a buffer able to cary at least BUF_LEN * 2 bytes */
@@ -431,10 +433,15 @@
 	msg[cnt]='\0';
 	g_free(cpy);
 	return cnt;
+#else
+	return strlen(msg);
+#endif
 }
 
+/* we don't need this for oscar either */
 int escape_text(char *msg)
 {
+#ifndef USE_OSCAR
 	char *c, *cpy;
 	int cnt=0;
 	/* Assumes you have a buffer able to cary at least BUF_LEN * 4 bytes */
@@ -467,6 +474,9 @@
 	msg[cnt]='\0';
 	g_free(cpy);
 	return cnt;
+#else
+	return strlen(msg);
+#endif
 }
 
 char * escape_text2(char *msg)