Skip to content

Commit

Permalink
Don't log the user in if we're AT max, not _ABOVE_ (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
enusbaum committed Jul 1, 2024
1 parent ea04395 commit 8cdd708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MBBSEmu/Session/Rlogin/RloginSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private bool ProcessIncomingByte(byte b)
}

//Check to see if there is an available channel
if (_channelDictionary.Count > _configuration.BBSChannels)
if (_channelDictionary.Count >= _configuration.BBSChannels)
{
Send($"\r\n|RED||B|{_configuration.BBSTitle} has reached the maximum number of users: {_configuration.BBSChannels} -- Please try again later.\r\n|RESET|".EncodeToANSIArray());
SessionState = EnumSessionState.LoggedOff;
Expand Down

0 comments on commit 8cdd708

Please sign in to comment.