From 5036169a01a8c3d4af046c14da80796adcec89fd Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 27 Jan 2015 10:19:52 -0500 Subject: [PATCH] been awhile since I used js --- lib/chatcommands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chatcommands.js b/lib/chatcommands.js index 381f15d..0cbeadd 100644 --- a/lib/chatcommands.js +++ b/lib/chatcommands.js @@ -136,7 +136,7 @@ var chatHandlers = { if (!hasPermission) return - if (username.toLowerCase() == data.toLowerCase()) + if (username.toLowerCase() === data.toLowerCase()) return bot.sendChatMsg("/ban " + data, true) @@ -458,7 +458,7 @@ var chatHandlers = { if (!hasPermission) return - if (username.toLowerCase() == data.toLowerCase()) + if (username.toLowerCase() === data.toLowerCase()) return bot.sendChatMsg("/ipban " + data, true)