Changeset 5f40da7 for root_commands.c


Ignore:
Timestamp:
2011-12-26T10:51:19Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
199fea6
Parents:
96f954d (diff), 644b808 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging oauth-xmpp branch, which adds support for OAuth2 authentication
against some XMPP services (Google Talk, Facebook and Microsoft's MSN-XMPP
gateway).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r96f954d r5f40da7  
    443443                }
    444444               
    445                 irc_rootmsg( irc, "Account successfully added with tag %s%s",
    446                              a->tag, cmd[4] ? "" :
    447                              ", now use /OPER to enter the password" );
     445                irc_rootmsg( irc, "Account successfully added with tag %s", a->tag );
     446               
     447                if( cmd[4] == NULL )
     448                {
     449                        set_t *oauth = set_find( &a->set, "oauth" );
     450                        if( oauth && bool2int( set_value( oauth ) ) )
     451                        {
     452                                *a->pass = '\0';
     453                                irc_rootmsg( irc, "No need to enter a password for this "
     454                                             "account since it's using OAuth" );
     455                        }
     456                        else
     457                        {
     458                                irc_rootmsg( irc, "You can now use the /OPER command to "
     459                                             "enter the password" );
     460                                if( oauth )
     461                                        irc_rootmsg( irc, "Alternatively, enable OAuth if "
     462                                                     "the account supports it: account %s "
     463                                                     "set oauth on", a->tag );
     464                        }
     465                }
    448466               
    449467                return;
Note: See TracChangeset for help on using the changeset viewer.