Changeset 06b5893
- Timestamp:
- 2011-12-07T21:47:25Z (13 years ago)
- Branches:
- master
- Children:
- 57da960
- Parents:
- aee8c19
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
raee8c19 r06b5893 212 212 this is an old server that can't do SASL 213 213 authentication. */ 214 if( !s asl_supported( ic ) )214 if( !set_getbool( &ic->acc->set, "sasl") || !sasl_supported( ic ) ) 215 215 { 216 216 /* If there's no version= tag, we suppose … … 375 375 other way. jabber.com doesn't seem to do SASL while it pretends 376 376 to be XMPP 1.0 compliant! */ 377 else if( !( jd->flags & JFLAG_AUTHENTICATED ) && s asl_supported( ic ) )377 else if( !( jd->flags & JFLAG_AUTHENTICATED ) && set_getbool( &ic->acc->set, "sasl") && sasl_supported( ic ) ) 378 378 { 379 379 if( !jabber_init_iq_auth( ic ) ) -
protocols/jabber/jabber.c
raee8c19 r06b5893 82 82 s->flags |= ACC_SET_OFFLINE_ONLY; 83 83 84 s = set_add( &acc->set, "sasl", "true", set_eval_bool, acc ); 85 s->flags |= ACC_SET_OFFLINE_ONLY | SET_HIDDEN_DEFAULT; 86 84 87 s = set_add( &acc->set, "user_agent", "BitlBee", NULL, acc ); 85 88 -
root_commands.c
raee8c19 r06b5893 362 362 while( s ) 363 363 { 364 if( !( s->flags & SET_HIDDEN) )364 if( set_isvisible( s ) ) 365 365 cmd_showset( irc, &s, s->key ); 366 366 s = s->next; -
set.c
raee8c19 r06b5893 112 112 } 113 113 114 int set_isvisible( set_t *set ) 115 { 116 /* the default value is not stored in value, only in def */ 117 return !( ( set->flags & SET_HIDDEN ) || 118 ( ( set->flags & SET_HIDDEN_DEFAULT ) && 119 ( set->value == NULL ) ) ); 120 } 121 114 122 int set_setstr( set_t **head, const char *key, char *value ) 115 123 { -
set.h
raee8c19 r06b5893 49 49 SET_HIDDEN = 0x0200, 50 50 SET_PASSWORD = 0x0400, 51 SET_HIDDEN_DEFAULT = 0x0800, 51 52 } set_flags_t; 52 53 … … 98 99 int set_reset( set_t **head, const char *key ); 99 100 101 /* returns true if a setting shall be shown to the user */ 102 int set_isvisible( set_t *set ); 103 100 104 /* Two very useful generic evaluators. */ 101 105 char *set_eval_int( set_t *set, char *value );
Note: See TracChangeset
for help on using the changeset viewer.