[f06894d] | 1 | /***************************************************************************\ |
---|
| 2 | * * |
---|
| 3 | * BitlBee - An IRC to IM gateway * |
---|
| 4 | * Jabber module - Main file * |
---|
| 5 | * * |
---|
| 6 | * Copyright 2006 Wilmer van der Gaast <wilmer@gaast.net> * |
---|
| 7 | * * |
---|
| 8 | * This program is free software; you can redistribute it and/or modify * |
---|
| 9 | * it under the terms of the GNU General Public License as published by * |
---|
| 10 | * the Free Software Foundation; either version 2 of the License, or * |
---|
| 11 | * (at your option) any later version. * |
---|
| 12 | * * |
---|
| 13 | * This program is distributed in the hope that it will be useful, * |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
---|
| 16 | * GNU General Public License for more details. * |
---|
| 17 | * * |
---|
| 18 | * You should have received a copy of the GNU General Public License along * |
---|
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., * |
---|
| 20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * |
---|
| 21 | * * |
---|
| 22 | \***************************************************************************/ |
---|
| 23 | |
---|
| 24 | #include "jabber.h" |
---|
| 25 | |
---|
| 26 | char *set_eval_resprio( set_t *set, char *value ) |
---|
| 27 | { |
---|
| 28 | account_t *acc = set->data; |
---|
| 29 | |
---|
| 30 | /* Only run this stuff if the account is online ATM. */ |
---|
| 31 | if( acc->gc ) |
---|
| 32 | { |
---|
| 33 | /* ... */ |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | if( g_strcasecmp( set->key, "priority" ) == 0 ) |
---|
| 37 | return set_eval_int( set, value ); |
---|
| 38 | else |
---|
| 39 | return value; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | char *set_eval_tls( set_t *set, char *value ) |
---|
| 43 | { |
---|
| 44 | if( g_strcasecmp( value, "try" ) == 0 ) |
---|
| 45 | return value; |
---|
| 46 | else |
---|
| 47 | return set_eval_bool( set, value ); |
---|
| 48 | } |
---|