Changes in root_commands.c [5ebff60:7733b8c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r5ebff60 r7733b8c 395 395 if (len >= 1 && g_strncasecmp(cmd[1], "add", len) == 0) { 396 396 struct prpl *prpl; 397 char *protocol_name = cmd[2]; 397 398 398 399 MIN_ARGS(3); … … 410 411 } 411 412 412 prpl = find_protocol(cmd[2]); 413 /* These used to be just hardcoded account tag guesses, 414 * now they are promoted to hardecoded subprotocol guesses */ 415 if (strcmp(protocol_name, "jabber") == 0) { 416 if (strstr(cmd[3], "@gmail.com") || strstr(cmd[3], "@googlemail.com")) { 417 protocol_name = "gtalk"; 418 } else if (strstr(cmd[3], "@chat.facebook.com")) { 419 protocol_name = "fb"; 420 } 421 } 422 423 prpl = find_protocol(protocol_name); 413 424 414 425 if (prpl == NULL) {
Note: See TracChangeset
for help on using the changeset viewer.