Changeset 593971d


Ignore:
Timestamp:
2010-07-24T20:59:41Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2945c6f
Parents:
0f28785
Message:

Warn when adding an account twice. People are doing this a lot actually,
and it's unlikely to be intentional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r0f28785 r593971d  
    380380                        return;
    381381                }
    382 
     382               
     383                for( a = irc->b->accounts; a; a = a->next )
     384                        if( a->prpl == prpl && prpl->handle_cmp( a->user, cmd[3] ) == 0 )
     385                                irc_usermsg( irc, "Warning: You already have an account with "
     386                                             "protocol `%s' and username `%s'. Are you accidentally "
     387                                             "trying to add it twice?", prpl->name, cmd[3] );
     388               
    383389                a = account_add( irc->b, prpl, cmd[3], cmd[4] );
    384390                if( cmd[5] )
Note: See TracChangeset for help on using the changeset viewer.