changeset 5702:05858c215226

[gaim-migrate @ 6123] Users should be able to register accounts for protocols that support it in the dialog (currently only Jabber I believe?) committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 03 Jun 2003 09:39:17 +0000
parents 730bfc7c5e2d
children cee14870644c
files src/gtkaccount.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Tue Jun 03 09:34:17 2003 +0000
+++ b/src/gtkaccount.c	Tue Jun 03 09:39:17 2003 +0000
@@ -915,6 +915,14 @@
 	else
 		__add_account(dialog->accounts_dialog, dialog->account);
 
+	/* See if we want to register with a server now. */
+	if (dialog->prpl_info->register_user != NULL &&
+		gtk_toggle_button_get_active(
+				GTK_TOGGLE_BUTTON(dialog->register_check))) {
+
+		dialog->prpl_info->register_user(dialog->account);
+	}
+
 	gtk_widget_destroy(dialog->window);
 
 	__account_win_destroy_cb(NULL, NULL, dialog);