Changeset 49a3c02 for skype


Ignore:
Timestamp:
2010-04-05T22:55:07Z (15 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
65acff8
Parents:
12198ac
Message:

add test_join setting

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    r12198ac r49a3c02  
    364364  * `account set skype/edit_prefix "updated message:"`
    365365
     366- The `echo123` test account is hidden by default. If you want to see it:
     367
     368  * `account set skype/test_join true`
     369
    366370== What needs to be done (aka. TODO)
    367371
  • skype/skype.c

    r12198ac r49a3c02  
    300300        *ptr = '\0';
    301301        ptr++;
    302         if (!strncmp(ptr, "ONLINESTATUS ", 13) &&
    303                         strcmp(user, sd->username) != 0
    304                         && strcmp(user, "echo123") != 0) {
     302        if (!strncmp(ptr, "ONLINESTATUS ", 13)) {
     303                        if (!strcmp(user, sd->username))
     304                                return;
     305                        if (!set_getbool(&ic->acc->set, "test_join")
     306                                && !strcmp(user, "echo123"))
     307                                return;
    305308                ptr = g_strdup_printf("%s@skype.com", user);
    306309                imcb_add_buddy(ic, ptr, NULL);
     
    12271230        s->flags |= ACC_SET_OFFLINE_ONLY;
    12281231
     1232        s = set_add(&acc->set, "test_join", "false", set_eval_bool, acc);
     1233        s->flags |= ACC_SET_OFFLINE_ONLY;
     1234
    12291235        s = set_add(&acc->set, "edit_prefix", "EDIT:",
    12301236                        NULL, acc);
Note: See TracChangeset for help on using the changeset viewer.