Changeset cb6d3c9


Ignore:
Timestamp:
2011-01-03T02:01:47Z (14 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
a5e6aa1
Parents:
fbb15f2
Message:

Add support for fetching group changes on the fly

So in case a user was not part of a group and it becomes (using Skype
UI), then BitlBee is now aware of this.

NOTE: current it seems the Skype part of this is broken. Use case: adding a
user to group #16 which already has a user.

<< GROUP 16 NROFUSERS 2

GET GROUP 16 NROFUSERS

<< GROUP 16 NROFUSERS 0

So it notifies about the number of users changed but I can't query the user
list as the number of users is then 0 - till Skype is not restarted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    rfbb15f2 rcb6d3c9  
    852852                        log_message(LOGLVL_ERROR,
    853853                                "No skype group with id %s. That's probably a bug.", id);
    854         }
     854        } else if (!strncmp(info, "NROFUSERS ", 10))
     855                /* Number of users changed in this group, query its type to see
     856                 * if it's a custom one we should care about. */
     857                skype_printf(ic, "GET GROUP %s TYPE", id);
     858        else if (!strcmp(info, "TYPE CUSTOM_GROUP"))
     859                /* This one is interesting, query its users. */
     860                skype_printf(ic, "GET GROUP %s USERS", id);
    855861}
    856862
Note: See TracChangeset for help on using the changeset viewer.