Changeset 7764fb1


Ignore:
Timestamp:
2013-01-01T15:44:31Z (12 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
e1d6b38
Parents:
eab8e52
Message:

skype: support setting mood text

Requested by martinc on IRC.

Location:
protocols/skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/README

    reab8e52 r7764fb1  
    347347  * `account skype set test_join true`
    348348
    349 - Mood texts are not shown by default. If you want to see it:
    350 
    351   * `account skype set show_moods true`
     349- Mood texts are not shown by default.
     350
     351  * If you want to see them: `account skype set show_moods true`
     352  * If you want to change your mood text: `account skype set mood_text 'foo bar'`
    352353
    353354- Group support:
  • protocols/skype/skype.c

    reab8e52 r7764fb1  
    22 *  skype.c - Skype plugin for BitlBee
    33 *
    4  *  Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012 by Miklos Vajna <vmiklos@frugalware.org>
     4 *  Copyright (c) 2007-2013 by Miklos Vajna <vmiklos@frugalware.org>
    55 *
    66 *  This program is free software; you can redistribute it and/or modify
     
    13221322}
    13231323
     1324static char *skype_set_mood_text(set_t *set, char *value)
     1325{
     1326        account_t *acc = set->data;
     1327        struct im_connection *ic = acc->ic;
     1328
     1329        skype_printf(ic, "SET PROFILE MOOD_TEXT %s", value);
     1330        return value;
     1331}
     1332
    13241333static char *skype_set_balance(set_t *set, char *value)
    13251334{
     
    15141523        s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;
    15151524
     1525        s = set_add(&acc->set, "mood_text", NULL, skype_set_mood_text, acc);
     1526        s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;
     1527
    15161528        s = set_add(&acc->set, "call", NULL, skype_set_call, acc);
    15171529        s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;
Note: See TracChangeset for help on using the changeset viewer.