Fixed bug in blacklist check
This commit is contained in:
parent
501faaf4c5
commit
d5f415cee2
2
bot.js
2
bot.js
|
@ -214,7 +214,7 @@ const checkBlacklist = (client, from, to, message) => {
|
|||
const blacklisters = Object.keys(client.blacklist);
|
||||
|
||||
if (contains(blacklisters, from)) {
|
||||
const blacklistInfo = blacklisters[from];
|
||||
const blacklistInfo = client.blacklist[from];
|
||||
const reason = blacklistInfo.reason;
|
||||
|
||||
// Log the blacklisters for later scrutiny
|
||||
|
|
Loading…
Reference in New Issue