Changeset 2730c79


Ignore:
Timestamp:
2015-05-13T07:01:28Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
a733669
Parents:
5014380
Message:

msn: Fix "ADL/RML command with invalid modification" errors

The previous value (7) was FL | AL | BL, and the block role was replaced
with "Hide" in msnp21, so the server was rejecting the parts of the ADL
that had it. And since adding blocked contacts isn't very useful anyway,
this is like silencing an annoying warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r5014380 r2730c79  
    623623        char l[4];
    624624
    625         if ((bd->flags & 7) == 0 || (bd->flags & MSN_BUDDY_ADL_SYNCED)) {
     625        if ((bd->flags & (MSN_BUDDY_FL | MSN_BUDDY_AL)) == 0 || (bd->flags & MSN_BUDDY_ADL_SYNCED)) {
    626626                return FALSE;
    627627        }
     
    641641        }
    642642
    643         g_snprintf(l, sizeof(l), "%d", bd->flags & 7);
     643        g_snprintf(l, sizeof(l), "%d", bd->flags & (MSN_BUDDY_FL | MSN_BUDDY_AL));
    644644        c = xt_new_node("c", NULL, NULL);
    645645        xt_add_attr(c, "n", handle);
     
    694694                struct msn_buddy_data *bd = bu->data;
    695695
    696                 if (bu->ic != ic || (bd->flags & 7) == 0) {
     696                if (bu->ic != ic || (bd->flags & (MSN_BUDDY_FL | MSN_BUDDY_AL)) == 0) {
    697697                        continue;
    698698                }
Note: See TracChangeset for help on using the changeset viewer.