Ignore:
Timestamp:
2015-12-05T01:52:48Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
ac68733a
Parents:
48b5fef
Message:

Remove facebook XMPP code, show error pointing at the new plugin

Facebook's oauth has been broken for months, and in the last few days
they broke plain logins too, so I just added an error message that says
this when you do "account on":

Facebook's XMPP service is gone. Try this instead:
https://wiki.bitlbee.org/HowtoFacebookMQTT

Also nuked all the oauth related code, except some parts of lib/oauth2.c
which seemed generic enough to maybe help in the future with other
not-really-compliant not-really-implementations of the not-really-oauth2
not-really-spec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r48b5fef r9b02bab  
    151151        }
    152152
     153        if (strstr(jd->server, ".facebook.com")) {
     154                imcb_error(ic, "Facebook's XMPP service is gone. Try this instead: https://wiki.bitlbee.org/HowtoFacebookMQTT");
     155                imc_logout(ic, FALSE);
     156                return;
     157        }
     158
    153159        if ((s = strchr(jd->server, '/'))) {
    154160                *s = 0;
     
    170176                jd->fd = jd->r_inpa = jd->w_inpa = -1;
    171177
    172                 if (strstr(jd->server, ".facebook.com")) {
    173                         jd->oauth2_service = &oauth2_service_facebook;
    174                 } else {
    175                         jd->oauth2_service = &oauth2_service_google;
    176                 }
     178                /* There are no other options atm, so assume google for everything
     179                   Facebook and MSN XMPP used to be here. RIP. */
     180                jd->oauth2_service = &oauth2_service_google;
    177181
    178182                oauth_params_parse(&p_in, ic->acc->pass);
Note: See TracChangeset for help on using the changeset viewer.