This commit is contained in:
reality 2016-04-11 22:01:59 +00:00
parent 45153a45d2
commit face69d31a

View File

@ -8,6 +8,19 @@ var pages = function(dbot) {
}); });
}, },
'/underbans': function(req, res) {
this.db.search('nbans', { 'server': server }, function(ban) {
if(ban.reason.match('#underban')) {
bans.push(ban);
}
}, function() {
res.render('bans', {
'server': server,
'bans': bans
});
});
},
'/bans/:server': function(req, res) { '/bans/:server': function(req, res) {
var server = req.params.server, var server = req.params.server,
bans = []; bans = [];