changeset 5848:8331918af110

[gaim-migrate @ 6279] Setting Trepia profile data now works. YAY! :D committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 13 Jun 2003 08:54:02 +0000
parents 54513d0bfb83
children 97d1ad7a50cc
files src/protocols/trepia/trepia.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/trepia/trepia.c	Fri Jun 13 08:34:06 2003 +0000
+++ b/src/protocols/trepia/trepia.c	Fri Jun 13 08:54:02 2003 +0000
@@ -178,6 +178,7 @@
 static void
 save_profile_cb(GaimConnection *gc, GaimRequestFields *fields)
 {
+	TrepiaSession *session = gc->proto_data;
 	const char *value;
 	char *buf, *temp;
 	int int_val;
@@ -205,12 +206,13 @@
 	SET_STRING_FIELD("n", "country");
 	SET_STRING_FIELD("o", "state");
 	SET_STRING_FIELD("p", "city");
-	SET_STRING_FIELD("o", "state");
 
 	buf = g_strdup_printf("%s</K>", temp);
 
-	gaim_debug(GAIM_DEBUG_MISC, "trepia", "Setting profile: {%s}\n",
-			   buf);
+	if (trepia_write(session->fd, buf, strlen(buf)) < 0) {
+		gaim_connection_error(session->gc, _("Write error"));
+		return;
+	}
 }
 
 static void