Changes in protocols/nogaim.c [5a8afc3:ff468a7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r5a8afc3 rff468a7 196 196 } 197 197 198 /* Returns heap allocated string with text attempting to explain why a protocol is missing199 * 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_PURPLE213 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 #else224 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 #endif231 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 236 198 void nogaim_init() 237 199 { 238 200 extern void msn_initmodule(); 239 201 extern void oscar_initmodule(); 202 extern void byahoo_initmodule(); 240 203 extern void jabber_initmodule(); 241 204 extern void twitter_initmodule(); … … 248 211 #ifdef WITH_OSCAR 249 212 oscar_initmodule(); 213 #endif 214 215 #ifdef WITH_YAHOO 216 byahoo_initmodule(); 250 217 #endif 251 218
Note: See TracChangeset
for help on using the changeset viewer.