Changeset 90cd6c4
- Timestamp:
- 2010-03-14T18:22:43Z (15 years ago)
- Branches:
- master
- Children:
- 21d48d9
- Parents:
- ceebeb1
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.conf
rceebeb1 r90cd6c4 120 120 ## Proxy = socks5://socksproxy.localnet.com 121 121 122 ## Protocols offered by bitlbee 123 ## 124 ## As recompiling may be quite unpractical for some people, this option 125 ## allows to remove the support of protocol, even if compiled in. If 126 ## nothing is given, there are no restrictions. 127 ## 128 ## Protocols = jabber yahoo 129 122 130 123 131 [defaults] -
conf.c
rceebeb1 r90cd6c4 63 63 conf->ping_timeout = 300; 64 64 conf->user = NULL; 65 conf->protocols = NULL; 65 66 proxytype = 0; 66 67 … … 307 308 conf->user = g_strdup( ini->value ); 308 309 } 310 else if( g_strcasecmp( ini->key, "protocols" ) == 0 ) 311 { 312 g_strfreev( conf->protocols ); 313 conf->protocols = g_strsplit_set( ini->value, " \t,;", -1 ); 314 } 309 315 else 310 316 { -
conf.h
rceebeb1 r90cd6c4 50 50 int ping_timeout; 51 51 char *user; 52 char **protocols; 52 53 } conf_t; 53 54 -
protocols/nogaim.c
rceebeb1 r90cd6c4 98 98 void register_protocol (struct prpl *p) 99 99 { 100 protocols = g_list_append(protocols, p); 100 int i; 101 gboolean refused = global.conf->protocols != NULL; 102 103 for (i = 0; global.conf->protocols && global.conf->protocols[i]; i++) 104 { 105 if (g_strcasecmp(p->name, global.conf->protocols[i]) == 0) 106 refused = FALSE; 107 } 108 109 if (refused) 110 log_message(LOGLVL_WARNING, "Protocol %s disabled\n", p->name); 111 else 112 protocols = g_list_append(protocols, p); 101 113 } 102 114
Note: See TracChangeset
for help on using the changeset viewer.