Changeset 8b8d1bed


Ignore:
Timestamp:
2011-01-01T16:55:20Z (13 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
89d6845
Parents:
edbfade
Message:

Read list of groups on startup

This is just the begining, we do not

  • store it
  • store the list of users in a group nor the name of the group
  • track changes after the user logged in
  • don't write this info
File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    redbfade r8b8d1bed  
    859859}
    860860
     861static void skype_parse_groups(struct im_connection *ic, char *line)
     862{
     863        char **i;
     864        char **groups = g_strsplit(line + 7, ", ", 0);
     865
     866        i = groups;
     867        while (*i) {
     868                skype_printf(ic, "GET GROUP %s DISPLAYNAME\n", *i);
     869                skype_printf(ic, "GET GROUP %s USERS\n", *i);
     870                i++;
     871        }
     872        g_strfreev(groups);
     873}
     874
    861875typedef void (*skype_parser)(struct im_connection *ic, char *line);
    862876
     
    883897                { "PING", skype_parse_ping },
    884898                { "CHATS ", skype_parse_chats },
     899                { "GROUPS ", skype_parse_groups },
    885900        };
    886901
     
    939954        skype_printf(ic, "PASSWORD %s\n", ic->acc->pass);
    940955
    941         /* This will download all buddies. */
     956        /* This will download all buddies and groups. */
    942957        st = skype_printf(ic, "SEARCH FRIENDS\n");
     958        skype_printf(ic, "SEARCH GROUPS CUSTOM\n");
     959
    943960        skype_printf(ic, "SET USERSTATUS ONLINE\n");
    944961
Note: See TracChangeset for help on using the changeset viewer.