diff src/protocols/msn/msn.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 aeaa751d32f7
children 85fcaff1505d
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Tue Oct 14 04:44:43 2003 +0000
+++ b/src/protocols/msn/msn.c	Tue Oct 14 05:07:39 2003 +0000
@@ -36,7 +36,7 @@
 
 static GaimPlugin *my_protocol = NULL;
 
-static char *msn_normalize(const char *str);
+static const char *msn_normalize(const GaimAccount *account, const char *str);
 
 typedef struct
 {
@@ -461,7 +461,7 @@
 	gaim_connection_update_progress(gc, _("Connecting"), 0, MSN_CONNECT_STEPS);
 
 	/* Hmm, I don't like this. */
-	username = msn_normalize(gaim_account_get_username(account));
+	username = msn_normalize(account, gaim_account_get_username(account));
 
 	if (strcmp(username, gaim_account_get_username(account)))
 		gaim_account_set_username(account, username);
@@ -650,11 +650,11 @@
 {
 	MsnSession *session = gc->proto_data;
 	MsnGroup *msn_group = NULL;
-	char *who;
+	const char *who;
 	char outparams[MSN_BUF_LEN];
 	GSList *l;
 
-	who = msn_normalize(name);
+	who = msn_normalize(gc->account, name);
 
 	if (strchr(who, ' ')) {
 		/* This is a broken blist entry. */
@@ -1186,8 +1186,8 @@
 	}
 }
 
-static char *
-msn_normalize(const char *str)
+static const char *
+msn_normalize(const GaimAccount *account, const char *str)
 {
 	static char buf[BUF_LEN];