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

skype: support setting mood text

Requested by martinc on IRC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.