Ignore:
Timestamp:
2011-12-26T10:50:34Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5f40da7
Parents:
9a1c14d
Message:

A few more minor cleanups before merging this into mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/sasl.c

    r9a1c14d r644b808  
    105105        }
    106106       
    107         if( !sup_plain && !sup_digest && !sup_gtalk && !sup_fb && !sup_ms )
    108         {
    109                 imcb_error( ic, "BitlBee does not support any of the offered SASL "
    110                                 "authentication schemes:%s", mechs->str );
     107        if( !sup_plain && !sup_digest )
     108        {
     109                if( !sup_gtalk && !sup_fb && !sup_ms )
     110                        imcb_error( ic, "This server requires OAuth "
     111                                        "(supported schemes:%s)", mechs->str );
     112                else
     113                        imcb_error( ic, "BitlBee does not support any of the offered SASL "
     114                                        "authentication schemes:%s", mechs->str );
    111115                imc_logout( ic, FALSE );
    112116                g_string_free( mechs, TRUE );
     
    294298        if( jd->flags & JFLAG_SASL_FB )
    295299        {
    296                 /* Facebook proprietary authentication. Not as useful as it seemed, but
    297                    the code's written now, may as well keep it..
    298                    
    299                    Mechanism is described on http://developers.facebook.com/docs/chat/
    300                    and in their Python module. It's all mostly useless because the tokens
    301                    expire after 24h. */
     300                /* New-style Facebook OAauth2 support. Instead of sending a refresh
     301                   token, they just send an access token that should never expire. */
    302302                GSList *p_in = NULL, *p_out = NULL;
    303303                char time[33];
Note: See TracChangeset for help on using the changeset viewer.