fix record
This commit is contained in:
parent
8b62120542
commit
511893765b
|
@ -10,6 +10,8 @@ module.exports = (lib) => {
|
|||
});
|
||||
}
|
||||
});
|
||||
lib.bot.names(e.channel.getName(), e.network, (names) => {
|
||||
e.channel.names = names;
|
||||
if(e.channel.names && e.user.nick !== lib.bot.me.nick) {
|
||||
var userCount = Object.keys(e.channel.names).length;
|
||||
lib.sql.query('select value from `f0ck`.`vars` where `key` = "highest_user_count" AND `channel` = ? AND `network` = ? limit 1', [e.channel.getName(), e.network], (err, rows) => {
|
||||
|
@ -24,4 +26,5 @@ module.exports = (lib) => {
|
|||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user