Changeset 17f057d for root_commands.c


Ignore:
Timestamp:
2011-12-13T00:34:07Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4efa5ce, 6e9ae72, a0a3de6
Parents:
b926d88
Message:

As I intended for a while already, use account tags everywhere instead of
"protocol(handle)". It's guaranteed to be unique and also shorter.

It may suck for people who have multiple accounts and didn't change their
tags, but that'll hopefully remind them to change them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    rb926d88 r17f057d  
    413413                                if( strcmp( a->pass, PASSWORD_PENDING ) == 0 )
    414414                                {
    415                                         irc_rootmsg( irc, "Enter password for account %s(%s) "
    416                                                      "first (use /OPER)", a->prpl->name, a->user );
     415                                        irc_rootmsg( irc, "Enter password for account %s "
     416                                                     "first (use /OPER)", a->tag );
    417417                                        return;
    418418                                }
     
    443443                }
    444444               
    445                 irc_rootmsg( irc, "Account successfully added%s", cmd[4] ? "" :
     445                irc_rootmsg( irc, "Account successfully added with tag %s%s",
     446                             a->tag, cmd[4] ? "" :
    446447                             ", now use /OPER to enter the password" );
    447448               
     
    490491                                {
    491492                                        if( strcmp( a->pass, PASSWORD_PENDING ) == 0 )
    492                                                 irc_rootmsg( irc, "Enter password for account %s(%s) "
    493                                                              "first (use /OPER)", a->prpl->name, a->user );
     493                                                irc_rootmsg( irc, "Enter password for account %s "
     494                                                             "first (use /OPER)", a->tag );
    494495                                        else
    495496                                                account_on( irc->b, a );
     
    553554                        irc_rootmsg( irc, "Account already online" );
    554555                else if( strcmp( a->pass, PASSWORD_PENDING ) == 0 )
    555                         irc_rootmsg( irc, "Enter password for account %s(%s) "
    556                                      "first (use /OPER)", a->prpl->name, a->user );
     556                        irc_rootmsg( irc, "Enter password for account %s "
     557                                     "first (use /OPER)", a->tag );
    557558                else
    558559                        account_on( irc->b, a );
     
    10931094                                g_snprintf( st, sizeof( st ) - 1, "Online (%s)", bu->status_msg );
    10941095                       
    1095                         g_snprintf( s, sizeof( s ) - 1, "%s %s(%s)", bu->handle, bu->ic->acc->prpl->name, bu->ic->acc->user );
     1096                        g_snprintf( s, sizeof( s ) - 1, "%s %s", bu->handle, bu->ic->acc->tag );
    10961097                        irc_rootmsg( irc, format, iu->nick, s, st );
    10971098                }
     
    11111112                if( away == 1 )
    11121113                {
    1113                         g_snprintf( s, sizeof( s ) - 1, "%s %s(%s)", bu->handle, bu->ic->acc->prpl->name, bu->ic->acc->user );
     1114                        g_snprintf( s, sizeof( s ) - 1, "%s %s", bu->handle, bu->ic->acc->tag );
    11141115                        irc_rootmsg( irc, format, iu->nick, s, irc_user_get_away( iu ) );
    11151116                }
     
    11281129                if( offline == 1 )
    11291130                {
    1130                         g_snprintf( s, sizeof( s ) - 1, "%s %s(%s)", bu->handle, bu->ic->acc->prpl->name, bu->ic->acc->user );
     1131                        g_snprintf( s, sizeof( s ) - 1, "%s %s", bu->handle, bu->ic->acc->tag );
    11311132                        irc_rootmsg( irc, format, iu->nick, s, "Offline" );
    11321133                }
     
    11521153        for( num = 0; q; q = q->next, num ++ )
    11531154                if( q->ic ) /* Not necessary yet, but it might come later */
    1154                         irc_rootmsg( irc, "%d, %s(%s): %s", num, q->ic->acc->prpl->name, q->ic->acc->user, q->question );
     1155                        irc_rootmsg( irc, "%d, %s: %s", num, q->ic->acc->tag, q->question );
    11551156                else
    11561157                        irc_rootmsg( irc, "%d, BitlBee: %s", num, q->question );
Note: See TracChangeset for help on using the changeset viewer.