diff libpurple/protocols/yahoo/libymsg.c @ 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 31534ae3406a
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)
 		{