Mercurial > pidgin.yaz
diff libpurple/account.c @ 18703:033b128f7c21
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Mon, 30 Jul 2007 00:01:08 +0000 |
parents | 5c1ed6296b56 |
children | 2a9d60d7af82 |
line wrap: on
line diff
--- a/libpurple/account.c Thu Jul 26 01:32:21 2007 +0000 +++ b/libpurple/account.c Mon Jul 30 00:01:08 2007 +0000 @@ -932,6 +932,17 @@ purple_connection_new(account, TRUE, purple_account_get_password(account)); } +void +purple_account_unregister(PurpleAccount *account) +{ + g_return_if_fail(account != NULL); + + purple_debug_info("account", "Unregistering account %s\n", + purple_account_get_username(account)); + + purple_connection_new_unregister(account, purple_account_get_password(account)); +} + static void request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) {