Changeset 060d066 for root_commands.c


Ignore:
Timestamp:
2011-02-01T13:05:58Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
da60f28
Parents:
00fd005
Message:

More password paranoia: Allow omitting the identify/register password as
well (and enter it using /OPER instead).

This is a gross hack and indeed still not solid: In irssi one can still
use /RAWLOG SAVE to find the OPER line sent to BitlBee (and of course not
everyone uses SSL to talk to remote BitlBee servers). This only works
within 10-30 minutes after entering the password though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r00fd005 r060d066  
    114114        }
    115115       
    116         if( strncmp( cmd[1], "-no", 3 ) == 0 )
     116        if( cmd[1] == NULL )
     117        {
     118        }
     119        else if( strncmp( cmd[1], "-no", 3 ) == 0 )
    117120        {
    118121                load = FALSE;
     
    135138        if( password == NULL )
    136139        {
    137                 MIN_ARGS( 2 );
     140                irc_usermsg( irc, "About to identify, use /OPER to enter the password" );
     141                irc->status |= OPER_HACK_IDENTIFY;
     142                return;
    138143        }
    139144       
     
    211216        {
    212217                irc_usermsg( irc, "This server does not allow registering new accounts" );
     218                return;
     219        }
     220       
     221        if( cmd[1] == NULL )
     222        {
     223                irc_usermsg( irc, "About to register, use /OPER to enter the password" );
     224                irc->status |= OPER_HACK_REGISTER;
    213225                return;
    214226        }
     
    13621374        { "group",          1, cmd_group,          0 },
    13631375        { "help",           0, cmd_help,           0 },
    1364         { "identify",       1, cmd_identify,       0 },
     1376        { "identify",       0, cmd_identify,       0 },
    13651377        { "info",           1, cmd_info,           0 },
    13661378        { "nick",           1, cmd_nick,           0 },
    13671379        { "no",             0, cmd_yesno,          0 },
    13681380        { "qlist",          0, cmd_qlist,          0 },
    1369         { "register",       1, cmd_register,       0 },
     1381        { "register",       0, cmd_register,       0 },
    13701382        { "remove",         1, cmd_remove,         0 },
    13711383        { "rename",         2, cmd_rename,         0 },
Note: See TracChangeset for help on using the changeset viewer.