Changeset 08a355b


Ignore:
Timestamp:
2008-12-21T19:37:59Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
5acf9ab
Parents:
7258d34
Message:

add 'skypeconsole' feature

this replaces the old client.py

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    r7258d34 r08a355b  
    343343  * `account set skype/balance query`
    344344
     345- For debug purposes, it's possible to send any command to `skyped`. To
     346  achieve this, you need to:
     347
     348  * `account set skype/skypeconsole true`
     349
     350  * then writing `skypeconsole: <command>` will work in the control
     351    channel.
     352
    345353== What needs to be done (aka. TODO)
    346354
  • skype/skype.c

    r7258d34 r08a355b  
    959959
    960960        sd->ic = ic;
     961
     962        if (set_getbool(&acc->set, "skypeconsole"))
     963                imcb_add_buddy(ic, "skypeconsole", NULL);
    961964}
    962965
     
    986989                *ptr = '\0';
    987990
    988         buf = g_strdup_printf("MESSAGE %s %s\n", nick, message);
     991        if (!strncmp(who, "skypeconsole", 12))
     992                buf = g_strdup_printf("%s\n", message);
     993        else
     994                buf = g_strdup_printf("MESSAGE %s %s\n", nick, message);
    989995        g_free(nick);
    990996        st = skype_write( ic, buf, strlen( buf ) );
     
    12651271
    12661272        s = set_add( &acc->set, "skypeout_offline", "true", set_eval_bool, acc );
     1273
     1274        s = set_add( &acc->set, "skypeconsole", "false", set_eval_bool, acc );
     1275        s->flags |= ACC_SET_OFFLINE_ONLY;
    12671276}
    12681277
Note: See TracChangeset for help on using the changeset viewer.