--- a/libpurple/protocols/jabber/auth_cyrus.c Wed Oct 02 00:24:45 2013 +0530 +++ b/libpurple/protocols/jabber/auth_cyrus.c Wed Oct 02 00:51:46 2013 +0530 @@ -134,7 +134,7 @@ gboolean remember; /* The password prompt dialog doesn't get disposed if the account disconnects */ - if (!PURPLE_CONNECTION_IS_VALID(gc)) + if (!PURPLE_IS_CONNECTION(gc)) return; account = purple_connection_get_account(gc); @@ -168,7 +168,7 @@ PurpleAccount *account; /* The password prompt dialog doesn't get disposed if the account disconnects */ - if (!PURPLE_CONNECTION_IS_VALID(gc)) + if (!PURPLE_IS_CONNECTION(gc)) return; account = purple_connection_get_account(gc);