Skip to content
  • Rob Swindell's avatar
    464633b7
    Remove unnecessary current user (co-sysop) level/flag checks · 464633b7
    Rob Swindell authored
    As Andre pointed out, these checks perform no function because a user with a level lower than the user being edited cannot enter the related command-key anyway.
    
    This was just effectively dead code that was held-over from ancient SBBS days, seemingly before I learned to effectively use the || operator:
    if(!(atoi(str)>useron.level && console&CON_R_INPUT))
    
    :-)
    
    Fixes issue #361
    464633b7
    Remove unnecessary current user (co-sysop) level/flag checks
    Rob Swindell authored
    As Andre pointed out, these checks perform no function because a user with a level lower than the user being edited cannot enter the related command-key anyway.
    
    This was just effectively dead code that was held-over from ancient SBBS days, seemingly before I learned to effectively use the || operator:
    if(!(atoi(str)>useron.level && console&CON_R_INPUT))
    
    :-)
    
    Fixes issue #361
Loading