- Timestamp:
- 2016-11-21T07:49:26Z (8 years ago)
- Children:
- 7a9d968
- Parents:
- 537d9b9 (diff), 5a8afc3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- protocols
- Files:
-
- 12 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
r537d9b9 r3f44e43 71 71 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY | ACC_SET_LOCKABLE; 72 72 set_setstr(&a->set, "username", user); 73 74 if (prpl == &protocol_missing) { 75 s = set_add(&a->set, "server", NULL, set_eval_account, a); 76 s->flags |= SET_NOSAVE | SET_HIDDEN | ACC_SET_OFFLINE_ONLY | ACC_SET_ONLINE_ONLY; 77 } 73 78 74 79 /* Hardcode some more clever tag guesses. */ -
protocols/nogaim.c
r537d9b9 r3f44e43 196 196 } 197 197 198 /* Returns heap allocated string with text attempting to explain why a protocol is missing 199 * Free the return value with g_free() */ 200 char *explain_unknown_protocol(const char *name) 201 { 202 char *extramsg = NULL; 203 204 if (is_protocol_disabled(name)) { 205 return g_strdup("Protocol disabled in the global config (bitlbee.conf)"); 206 } 207 208 if (strcmp(name, "yahoo") == 0) { 209 return g_strdup("The old yahoo protocol is gone, try the funyahoo++ libpurple plugin instead."); 210 } 211 212 #ifdef WITH_PURPLE 213 if ((strcmp(name, "msn") == 0) || 214 (strcmp(name, "loubserp-mxit") == 0) || 215 (strcmp(name, "myspace") == 0)) { 216 return g_strdup("This protocol has been removed from your libpurple version."); 217 } 218 219 if (strcmp(name, "hipchat") == 0) { 220 return g_strdup("This account type isn't supported by libpurple's jabber."); 221 } 222 223 #else 224 if (strcmp(name, "aim") == 0 || strcmp(name, "icq") == 0) { 225 return g_strdup("This account uses libpurple specific aliases for oscar. " 226 "Re-add the account with `account add oscar ...'"); 227 } 228 229 extramsg = "If this is a libpurple plugin, you might need to install bitlbee-libpurple instead."; 230 #endif 231 return g_strconcat("The protocol plugin is not installed or could not be loaded. " 232 "Use the `plugins' command to list available protocols. ", 233 extramsg, NULL); 234 } 235 198 236 void nogaim_init() 199 237 { 200 238 extern void msn_initmodule(); 201 239 extern void oscar_initmodule(); 202 extern void byahoo_initmodule();203 240 extern void jabber_initmodule(); 204 241 extern void twitter_initmodule(); … … 212 249 #ifdef WITH_OSCAR 213 250 oscar_initmodule(); 214 #endif215 216 #ifdef WITH_YAHOO217 byahoo_initmodule();218 251 #endif 219 252 -
protocols/nogaim.h
r537d9b9 r3f44e43 327 327 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 328 328 G_MODULE_EXPORT gboolean is_protocol_disabled(const char *name); 329 G_MODULE_EXPORT char *explain_unknown_protocol(const char *name); 329 330 /* When registering a new protocol, you should allocate space for a new prpl 330 331 * struct, initialize it (set the function pointers to point to your
Note: See TracChangeset
for help on using the changeset viewer.