Changeset 3c7af69


Ignore:
Timestamp:
2012-12-29T10:44:24Z (12 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
e6298e5
Parents:
14d0b02
Message:

skype: make it not hang with >=2.2.0.35

Sadly reading users of larger groups using the public API just hangs in newer
Skype versions. Skype4Py already defines a timeout for requests, but still:
startup takes *minutes*. Work this around by disabling reading of groups by
default.

Location:
protocols/skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/README

    r14d0b02 r3c7af69  
    3131== Requirements
    3232
    33 * Skype >= 1.4.0.99. The latest version I've tested is 2.1.0.81.
     33* Skype >= 1.4.0.99. The latest version I've tested is 2.2.0.35.
    3434* BitlBee >= 3.0. The latest version I've tested is @BITLBEE_VERSION@. Use
    3535  old versions (see the NEWS file about which one) if you have older BitlBee
     
    353353- Group support:
    354354
     355  * To enable: `account skype set read_groups true`
    355356  * Skype groups are told to BitlBee
    356357  * The usual `/invite` in a group channel adds the buddy to the group in skype
  • protocols/skype/skype.c

    r14d0b02 r3c7af69  
    10461046static void skype_parse_groups(struct im_connection *ic, char *line)
    10471047{
     1048        if (!set_getbool(&ic->acc->set, "read_groups"))
     1049                return;
     1050
    10481051        char **i;
    10491052        char **groups = g_strsplit(line + 7, ", ", 0);
     
    15361539        s = set_add(&acc->set, "edit_prefix", "EDIT:",
    15371540                        NULL, acc);
     1541
     1542        s = set_add(&acc->set, "read_groups", "false", set_eval_bool, acc);
    15381543}
    15391544
Note: See TracChangeset for help on using the changeset viewer.