Changeset ac6855b3 for root_commands.c


Ignore:
Timestamp:
2015-04-05T21:44:05Z (9 years ago)
Author:
dequis <dx@…>
Children:
9dc67f4
Parents:
830864d
Message:

Revert "Add the concept of jabber sub-protocols"

This reverts commit 7733b8c95abbac26f5cbf02a9874a9d96c23bf0d.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r830864d rac6855b3  
    395395        if (len >= 1 && g_strncasecmp(cmd[1], "add", len) == 0) {
    396396                struct prpl *prpl;
    397                 char *protocol_name = cmd[2];
    398397
    399398                MIN_ARGS(3);
     
    411410                }
    412411
    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]);
    424413
    425414                if (prpl == NULL) {
Note: See TracChangeset for help on using the changeset viewer.