# HG changeset patch # User Eric Warmenhoven # Date 986963632 0 # Node ID c6390c52caca33c55eb7e0f705e7f3746b330ed2 # Parent c0ab844d4790296f43301cf2be0e2d0bf59bdc2c [gaim-migrate @ 1706] fun stuff. committer: Tailor Script diff -r c0ab844d4790 -r c6390c52caca plugins/jabber/jabber.c --- a/plugins/jabber/jabber.c Mon Apr 09 20:53:47 2001 +0000 +++ b/plugins/jabber/jabber.c Wed Apr 11 04:33:52 2001 +0000 @@ -545,7 +545,7 @@ else if ((y = xmlnode_get_tag(p->x, "status"))) { char buf[8192]; msg = xmlnode_get_data(y); - g_snprintf(buf, sizeof(buf), "%s now has status: %s", + g_snprintf(buf, sizeof(buf), "%s now has status: %s", p->from->resource, msg); write_to_conv(b, buf, WFLAG_SYSTEM, NULL); } @@ -684,7 +684,7 @@ else if ((y = xmlnode_get_tag(p->x, "status"))) { char buf[8192]; char *msg = xmlnode_get_data(y); - g_snprintf(buf, sizeof(buf), "%s now has status: %s", + g_snprintf(buf, sizeof(buf), "%s now has status: %s", p->from->resource, msg); write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL); } @@ -1211,6 +1211,9 @@ static int catch = 0; switch (state) { case JCONN_STATE_OFF: + gdk_input_remove(reginpa); + reginpa = 0; + jab_delete(j); break; case JCONN_STATE_CONNECTED: break; @@ -1231,6 +1234,7 @@ static void regpacket(jconn j, jpacket p) { static int here = 0; + g_print("here\n"); switch (p->type) { case JPACKET_MESSAGE: break; @@ -1245,21 +1249,19 @@ struct aim_user *u; user = g_strdup(jid_full(j->user)); regjconn = NULL; - gdk_input_remove(reginpa); - reginpa = 0; here = 0; u = new_user(user, PROTO_JABBER, OPT_USR_REM_PASS); g_free(user); g_snprintf(u->password, sizeof(u->password), "%s", j->pass); save_prefs(); xmlnode_free(p->x); - jab_delete(j); do_error_dialog("Registration successful! Your account has been" " added to the Account Editor.", "Jabber " "Registration"); gtk_entry_set_text(GTK_ENTRY(newname), ""); gtk_entry_set_text(GTK_ENTRY(newpass1), ""); gtk_entry_set_text(GTK_ENTRY(newpass2), ""); + g_print("reg\n"); return; } else if (here == 1) { x = jutil_iqnew(JPACKET__SET, NS_AUTH); @@ -1301,10 +1303,7 @@ do_error_dialog("Registration failed", "Jabber Registration"); } regjconn = NULL; - gdk_input_remove(reginpa); xmlnode_free(p->x); - jab_delete(j); - reginpa = 0; here = 0; return; } @@ -1320,7 +1319,7 @@ static void regjcall(gpointer data, gint source, GdkInputCondition cond) { - jab_recv(regjconn); + gjab_recv((gjconn)regjconn); } static void jabber_do_new_user()