Changeset 0dd6570


Ignore:
Timestamp:
2011-12-21T11:41:13Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
31db8165
Parents:
ce199b7
Message:

Add a helpful message on what to do with OAuth login issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rce199b7 r0dd6570  
    327327        imcb_log( ic, "Signing off.." );
    328328       
     329        /* TBH I don't remember anymore why I didn't just use ic->acc... */
     330        for( a = bee->accounts; a; a = a->next )
     331                if( a->ic == ic )
     332                        break;
     333       
     334        if( a && !allow_reconnect && !( ic->flags & OPT_LOGGED_IN ) &&
     335            set_getbool( &a->set, "oauth" ) )
     336        {
     337                /* If this account supports OAuth, we're not logged in yet and
     338                   not allowed to retry, assume there were auth issues. Give a
     339                   helpful message on what might be necessary to fix this. */
     340                imcb_log( ic, "If you're having problems logging in, try re-requesting "
     341                          "an OAuth token: account %s set password \"\"", a->tag );
     342        }
     343       
    329344        for( l = bee->users; l; )
    330345        {
     
    347362       
    348363        query_del_by_conn( (irc_t*) ic->bee->ui_data, ic );
    349        
    350         for( a = bee->accounts; a; a = a->next )
    351                 if( a->ic == ic )
    352                         break;
    353364       
    354365        if( !a )
Note: See TracChangeset for help on using the changeset viewer.