im.pidgin.pidgin: 253c318c6b44b7d18f6e9487a1b0ca599d956235
markdoliner at pidgin.im
markdoliner at pidgin.im
Thu Jan 31 21:35:55 EST 2008
-----------------------------------------------------------------
Revision: 253c318c6b44b7d18f6e9487a1b0ca599d956235
Ancestor: ef89674f22de741432d05bc542d20d3c20e5e69e
Author: markdoliner at pidgin.im
Date: 2008-02-01T02:09:11
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/yahoo/yahoo.c
ChangeLog:
Clean up a function
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c e7ac4ac14228789b9bb328a785160ebf3512cf09
+++ libpurple/protocols/yahoo/yahoo.c 9f1a20674a28da90cf9e269d5a912bde0fdff9b6
@@ -3940,31 +3940,27 @@ static void yahoo_rem_deny(PurpleConnect
yahoo_packet_send_and_free(pkt, yd);
}
-static void yahoo_set_permit_deny(PurpleConnection *gc) {
- PurpleAccount *acct;
+static void yahoo_set_permit_deny(PurpleConnection *gc)
+{
+ PurpleAccount *account;
GSList *deny;
- acct = gc->account;
+ account = purple_connection_get_account(gc);
- switch (acct->perm_deny) {
- /* privacy 1 */
+ switch (account->perm_deny)
+ {
case PURPLE_PRIVACY_ALLOW_ALL:
- for (deny = acct->deny;deny;deny = deny->next)
- yahoo_rem_deny(gc, deny->data);
- break;
- /* privacy 3 */
case PURPLE_PRIVACY_ALLOW_USERS:
- for (deny = acct->deny;deny;deny = deny->next)
+ for (deny = account->deny; deny; deny = deny->next)
yahoo_rem_deny(gc, deny->data);
break;
- /* privacy 5 */
+
case PURPLE_PRIVACY_ALLOW_BUDDYLIST:
- /* privacy 4 */
case PURPLE_PRIVACY_DENY_USERS:
- for (deny = acct->deny;deny;deny = deny->next)
+ for (deny = account->deny; deny; deny = deny->next)
yahoo_add_deny(gc, deny->data);
break;
- /* privacy 2 */
+
case PURPLE_PRIVACY_DENY_ALL:
default:
break;
More information about the Commits
mailing list