Changeset e2b15bb for set.c


Ignore:
Timestamp:
2008-02-12T00:01:35Z (15 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
0529a7f
Parents:
5f4eede
Message:
  • add global policy setting
  • add copyright and author notices to otr.h and otr.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.c

    r5f4eede re2b15bb  
    369369        return value;
    370370}
     371
     372/* possible values: never, opportunistic, manual, always */
     373char *set_eval_otr_policy( set_t *set, char *value )
     374{
     375        if ( !strcmp(value, "never") )
     376                return value;
     377        if ( !strcmp(value, "opportunistic") )
     378                return value;
     379        if ( !strcmp(value, "manual") )
     380                return value;
     381        if ( !strcmp(value, "always") )
     382                return value;
     383        return NULL;
     384}
Note: See TracChangeset for help on using the changeset viewer.