mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
use the right user for kicks
This commit is contained in:
parent
8db0932c73
commit
99b09c63b4
@ -51,16 +51,16 @@ var webInterface = function(dbot) {
|
||||
var quoteCount = dbot.db.quoteArrs[user].length;
|
||||
}
|
||||
|
||||
if(!dbot.db.kicks.hasOwnProperty(user)) {
|
||||
if(!dbot.db.kicks.hasOwnProperty(req.params.user)) {
|
||||
var kicks = '0';
|
||||
} else {
|
||||
var kicks = dbot.db.kicks[user];
|
||||
var kicks = dbot.db.kicks[req.params.user];
|
||||
}
|
||||
|
||||
if(!dbot.db.kickers.hasOwnProperty(user)) {
|
||||
if(!dbot.db.kickers.hasOwnProperty(req.params.user)) {
|
||||
var kicked = '0';
|
||||
} else {
|
||||
var kicked = dbot.db.kickers[user];
|
||||
var kicked = dbot.db.kickers[req.params.user];
|
||||
}
|
||||
|
||||
res.render('user', { 'name': dbot.name, 'user': req.params.user,
|
||||
|
Loading…
Reference in New Issue
Block a user