diff plugins/perl/perl.c @ 6036:547ba881bc7e

[gaim-migrate @ 6486] Fix the --login=[NAME] command line argument. Fix the password prompt when signing on an account with no password set. I made some similar changes that probably fix problems with the filectl plugin, using gaim-remote to sign on an account, and signing on an account via perl script. (The change is calling gaim_account_connect() instead of serv_login().) Fix a silly compiler warning. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Jul 2003 22:24:57 +0000
parents 83507b72ae6d
children 5239a3b4ab33
line wrap: on
line diff
--- a/plugins/perl/perl.c	Sat Jul 05 21:54:19 2003 +0000
+++ b/plugins/perl/perl.c	Sat Jul 05 22:24:57 2003 +0000
@@ -739,7 +739,7 @@
 	if (!strncasecmp(command, "signon", 6)) {
 		int index = SvIV(ST(1));
 		if (g_list_nth_data(gaim_accounts_get_all(), index))
-		serv_login(g_list_nth_data(gaim_accounts_get_all(), index));
+		gaim_account_connect(g_list_nth_data(gaim_accounts_get_all(), index));
 	} else if (!strncasecmp(command, "signoff", 7)) {
 		GaimConnection *gc = (GaimConnection *)SvIV(ST(1));
 		if (g_list_find(gaim_connections_get_all(), gc))