Changeset 93cc86f for protocols


Ignore:
Timestamp:
2011-03-08T06:24:34Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7add7ec
Parents:
9e9140b
Message:

Twitter: Warn the user if the OAuth username and the configured username
don't match. This is not a real problem but can be confusing if you don't
expect it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r9e9140b r93cc86f  
    149149                        return FALSE;
    150150                }
     151                else
     152                {
     153                        const char *sn = oauth_params_get( &info->params, "screen_name" );
     154                       
     155                        if( sn != NULL && ic->acc->prpl->handle_cmp( sn, ic->acc->user ) != 0 )
     156                        {
     157                                imcb_log( ic, "Warning: You logged in via OAuth as %s "
     158                                          "instead of %s.", sn, ic->acc->user );
     159                        }
     160                }
    151161               
    152162                /* IM mods didn't do this so far and it's ugly but I should
Note: See TracChangeset for help on using the changeset viewer.