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)