comparison src/account.c @ 12285:af257d8679fe

[gaim-migrate @ 14589] Ok, so I'm changing the semantics of gaim_account_notify_added, having it check for the existance of a buddy was breaking some jabber scenarios. So buddy checks should now be done in the prpls. I also added a gaim_account_request_add. _notify_added only notifies the user of the add, request_add notifies the user AND asks them if they want to add the buddy to their buddy list. I only updated jabber for these changes because it's the only protocol I really know at all well. So everyone PLEASE make sure that the other protocols get updated for this. That is make sure that when you expect to prompt the user to add the buddy you use _request_add instead of just using _notify_added and expecting the core to determine if it needs to prompt the user. Oh, there are also some other jabber changes which should hopefully fix some issues that people were seeing, like buddies not signing off when you unsubscribed with them, etc. Let me know if anyone notices any jabber oddities after this. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Thu, 01 Dec 2005 20:09:27 +0000
parents 980c877bd238
children 255e6912607b
comparison
equal deleted inserted replaced
12284:ecd471d1eeec 12285:af257d8679fe
1043 1043
1044 if (ui_ops != NULL && ui_ops->notify_added != NULL) 1044 if (ui_ops != NULL && ui_ops->notify_added != NULL)
1045 ui_ops->notify_added(account, remote_user, id, alias, message); 1045 ui_ops->notify_added(account, remote_user, id, alias, message);
1046 } 1046 }
1047 1047
1048 void
1049 gaim_account_request_add(GaimAccount *account, const char *remote_user,
1050 const char *id, const char *alias,
1051 const char *message)
1052 {
1053 GaimAccountUiOps *ui_ops;
1054
1055 g_return_if_fail(account != NULL);
1056 g_return_if_fail(remote_user != NULL);
1057
1058 ui_ops = gaim_accounts_get_ui_ops();
1059
1060 if (ui_ops != NULL && ui_ops->request_add != NULL)
1061 ui_ops->request_add(account, remote_user, id, alias, message);
1062 }
1063
1048 static void 1064 static void
1049 change_password_cb(GaimAccount *account, GaimRequestFields *fields) 1065 change_password_cb(GaimAccount *account, GaimRequestFields *fields)
1050 { 1066 {
1051 const char *orig_pass, *new_pass_1, *new_pass_2; 1067 const char *orig_pass, *new_pass_1, *new_pass_2;
1052 1068