From 99b09c63b4ac6c2f5fd4770becd6638b018e40ea Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 25 Nov 2012 18:54:12 +0000 Subject: [PATCH] use the right user for kicks --- modules/web.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/web.js b/modules/web.js index bdfa590..4d10498 100644 --- a/modules/web.js +++ b/modules/web.js @@ -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,