diff src/protocols/jabber/jutil.c @ 7261:1930e3d00ecd

[gaim-migrate @ 7838] prpl-specific normalize is back, after my crusade to kill it. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 14 Oct 2003 05:07:39 +0000
parents 67c4e9d39242
children 85fcaff1505d
line wrap: on
line diff
--- a/src/protocols/jabber/jutil.c	Tue Oct 14 04:44:43 2003 +0000
+++ b/src/protocols/jabber/jutil.c	Tue Oct 14 05:07:39 2003 +0000
@@ -183,3 +183,14 @@
 	else
 		return g_strdup(jid);
 }
+
+const char *jabber_normalize(const GaimAccount *account, const char *in)
+{
+	static char buf[2048]; /* maximum legal length of a jabber jid */
+	char *tmp;
+
+	tmp = jabber_get_bare_jid(in);
+	g_snprintf(buf, sizeof(buf), "%s", tmp);
+	g_free(tmp);
+	return buf;
+}