Fixed cron for incorrect channel handling

master
lanxu 2018-10-28 00:03:45 +03:00
parent f5facd076d
commit 27a58c4522
1 changed files with 1 additions and 1 deletions

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);
}
}
});