Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
18702:413103ddeaac | 18703:033b128f7c21 |
---|---|
930 purple_account_get_username(account)); | 930 purple_account_get_username(account)); |
931 | 931 |
932 purple_connection_new(account, TRUE, purple_account_get_password(account)); | 932 purple_connection_new(account, TRUE, purple_account_get_password(account)); |
933 } | 933 } |
934 | 934 |
935 void | |
936 purple_account_unregister(PurpleAccount *account) | |
937 { | |
938 g_return_if_fail(account != NULL); | |
939 | |
940 purple_debug_info("account", "Unregistering account %s\n", | |
941 purple_account_get_username(account)); | |
942 | |
943 purple_connection_new_unregister(account, purple_account_get_password(account)); | |
944 } | |
945 | |
935 static void | 946 static void |
936 request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) | 947 request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) |
937 { | 948 { |
938 const char *entry; | 949 const char *entry; |
939 gboolean remember; | 950 gboolean remember; |