From 0dac6bd576303e083dc56057aebc49113ecb7dfc Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 14 Mar 2015 13:50:31 +0000 Subject: [PATCH] b& for 45 years --- modules/report/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index 1374bcf..a65ebde 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -132,7 +132,7 @@ var commands = function(dbot) { console.log('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); }); - if(latest_ban != 0) { + if(latest_ban.time != 0) { if(latest_unban.time == 0 || (latest_unban.time < latest_ban.time)) { event.reply('Current Ban Status: Banned since ' + moment(latest_ban.time).fromNow() + ' (since ' + moment(parseInt(latest_ban.time)).format('DD/MM/YYYY') + ')'); event.reply('Reason: ' + latest_ban.message);