Fixed cron for incorrect channel handling
This commit is contained in:
parent
f5facd076d
commit
27a58c4522
2
app.js
2
app.js
|
@ -139,7 +139,7 @@ for (let i = 0; i < config.cron.length; i++) {
|
||||||
cron.schedule(row.cron, () => {
|
cron.schedule(row.cron, () => {
|
||||||
if (client.conn !== null) {
|
if (client.conn !== null) {
|
||||||
for (let c = 0; c < config.irc.channels.length; c++) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user