forked from GitHub/dbot
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;
|
var quoteCount = dbot.db.quoteArrs[user].length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!dbot.db.kicks.hasOwnProperty(user)) {
|
if(!dbot.db.kicks.hasOwnProperty(req.params.user)) {
|
||||||
var kicks = '0';
|
var kicks = '0';
|
||||||
} else {
|
} 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';
|
var kicked = '0';
|
||||||
} else {
|
} 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,
|
res.render('user', { 'name': dbot.name, 'user': req.params.user,
|
||||||
|
Loading…
Reference in New Issue
Block a user