Fixed cron for incorrect channel handling

This commit is contained in:
lanxu 2018-10-28 00:03:45 +03:00
parent f5facd076d
commit 27a58c4522

2
app.js
View File

@ -139,7 +139,7 @@ for (let i = 0; i < config.cron.length; i++) {
cron.schedule(row.cron, () => {
if (client.conn !== null) {
for (let c = 0; c < config.irc.channels.length; c++) {
handleMessage('BOT', config.irc.channels[i] , row.command);
handleMessage('BOT', config.irc.channels[c] , row.command);
}
}
});