Changeset ac6855b3 for root_commands.c
- Timestamp:
- 2015-04-05T21:44:05Z (10 years ago)
- Children:
- 9dc67f4
- Parents:
- 830864d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r830864d rac6855b3 395 395 if (len >= 1 && g_strncasecmp(cmd[1], "add", len) == 0) { 396 396 struct prpl *prpl; 397 char *protocol_name = cmd[2];398 397 399 398 MIN_ARGS(3); … … 411 410 } 412 411 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); 412 prpl = find_protocol(cmd[2]); 424 413 425 414 if (prpl == NULL) {
Note: See TracChangeset
for help on using the changeset viewer.