mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
underban
This commit is contained in:
parent
45153a45d2
commit
face69d31a
@ -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) {
|
||||
var server = req.params.server,
|
||||
bans = [];
|
||||
|
Loading…
Reference in New Issue
Block a user