changeset 27398:7f008ce8604b

I believe this will correctly handle setting the yd->jp value under the new two-prpl model. I still need to put a migration path in for existing Yahoo! JAPAN accounts.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sun, 05 Jul 2009 14:31:37 +0000
parents 1f30c4a47e3d
children 1f63548d3da5
files libpurple/protocols/yahoo/libymsg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c	Sun Jul 05 14:14:14 2009 +0000
+++ b/libpurple/protocols/yahoo/libymsg.c	Sun Jul 05 14:31:37 2009 +0000
@@ -3428,10 +3428,10 @@
 	yahoo_server_check(account);
 	yahoo_picture_check(account);
 
-	if (purple_account_get_bool(account, "yahoojp", FALSE)) {
+	if (purple_strequal(purple_account_get_protocol_id(account), "yahoojp")) {
 		yd->jp = TRUE;
 		if (purple_proxy_connect(gc, account,
-		                       purple_account_get_string(account, "serverjp",  YAHOOJP_PAGER_HOST),
+		                       purple_account_get_string(account, "server",  YAHOOJP_PAGER_HOST),
 		                       purple_account_get_int(account, "port", YAHOO_PAGER_PORT),
 		                       yahoo_got_connected, gc) == NULL)
 		{