Added kickConnections to channelManager

This commit is contained in:
rainbow napkin 2024-12-01 20:48:42 -05:00
parent 0432c9d1cc
commit b138b26f27
6 changed files with 37 additions and 15 deletions

View file

@ -30,7 +30,7 @@ module.exports.authenticateSession = async function(user, pass, req){
//Make the number a little prettier despite the lack of precision since we're not doing calculations here :P
const expiration = banDB.getDaysUntilExpiration() < 1 ? 0 : banDB.getDaysUntilExpiration();
if(banDB.permanent){
throw new Error(`Your account has been banned, and will be permanently deleted in: ${expiration} day(s)`);
throw new Error(`Your account has been permanently banned, and will be nuked from the database in: ${expiration} day(s)`);
}else{
throw new Error(`Your account has been temporarily banned, and will be reinstated in: ${expiration} day(s)`);
}