diff src/account.c @ 8834:beb7be215db3

[gaim-migrate @ 9598] I removed account->ip because it isn't used anywhere and I think it's dumb. Also added handling for a and aaaa records to rendezvous. Gaim peeps show up in iChat rendezvous lists now. There are still problems. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 28 Apr 2004 00:48:21 +0000
parents 725413cc9fb9
children db1dc2d02020
line wrap: on
line diff
--- a/src/account.c	Tue Apr 27 23:17:12 2004 +0000
+++ b/src/account.c	Wed Apr 28 00:48:21 2004 +0000
@@ -43,7 +43,6 @@
 	TAG_ALIAS,
 	TAG_USERINFO,
 	TAG_BUDDYICON,
-	TAG_PUBLIC_IP,
 	TAG_SETTING,
 	TAG_TYPE,
 	TAG_HOST,
@@ -509,19 +508,6 @@
 }
 
 void
-gaim_account_set_public_ip(GaimAccount *account, const char *ip)
-{
-	g_return_if_fail(account != NULL);
-
-	if (account->ip != NULL)
-		g_free(account->ip);
-
-	account->ip = (ip == NULL ? NULL : g_strdup(ip));
-
-	schedule_accounts_save();
-}
-
-void
 gaim_account_set_proxy_info(GaimAccount *account, GaimProxyInfo *info)
 {
 	g_return_if_fail(account != NULL);
@@ -786,14 +772,6 @@
 	return gaim_account_get_ui_bool(account, ui, "auto-login", FALSE);
 }
 
-const char *
-gaim_account_get_public_ip(const GaimAccount *account)
-{
-	g_return_val_if_fail(account != NULL, NULL);
-
-	return account->ip;
-}
-
 GaimProxyInfo *
 gaim_account_get_proxy_info(const GaimAccount *account)
 {
@@ -1005,8 +983,6 @@
 		data->tag = TAG_USERINFO;
 	else if (!strcmp(element_name, "buddyicon"))
 		data->tag = TAG_BUDDYICON;
-	else if (!strcmp(element_name, "public-ip"))
-		data->tag = TAG_PUBLIC_IP;
 	else if (!strcmp(element_name, "proxy")) {
 		data->in_proxy = TRUE;
 
@@ -1095,10 +1071,6 @@
 		if (*buffer != '\0')
 			gaim_account_set_buddy_icon(data->account, buffer);
 	}
-	else if (data->tag == TAG_PUBLIC_IP) {
-		if (*buffer != '\0')
-			gaim_account_set_public_ip(data->account, buffer);
-	}
 	else if (data->tag == TAG_TYPE) {
 		if (data->in_proxy) {
 			if (!strcmp(buffer, "global"))
@@ -1307,7 +1279,7 @@
 {
 	GaimProxyInfo *proxy_info;
 	GaimProxyType proxy_type;
-	const char *password, *alias, *user_info, *buddy_icon, *ip;
+	const char *password, *alias, *user_info, *buddy_icon;
 	char *esc;
 
 	fprintf(fp, " <account>\n");
@@ -1342,10 +1314,6 @@
 		g_free(esc);
 	}
 
-	if ((ip = gaim_account_get_public_ip(account)) != NULL) {
-		fprintf(fp, "  <public-ip>%s</public-ip>\n", ip);
-	}
-
 	fprintf(fp, "  <settings>\n");
 	g_hash_table_foreach(account->settings, write_setting, fp);
 	fprintf(fp, "  </settings>\n");