diff --git a/index.js b/index.js index dd40f0a..f08a5fc 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,10 @@ function parse_schedule() { title: fahrplan[i].title, sub: fahrplan[i].start + " D" + fahrplan[i].day + " @ " + fahrplan[i].room + ", " + fahrplan[i].personnames, }); - } else if (fahrplan_parsed.other.length < n_other) { + } else if (fahrplan_parsed.other.length < n_other + && fahrplan[i].roomguid != channel_here && fahrplan[i].room != channel_here + && fahrplan[i].roomguid != channel_main_1 && fahrplan[i].room != channel_main_1 + && fahrplan[i].roomguid != channel_main_2 && fahrplan[i].room != channel_main_2) { fahrplan_parsed.other.push({ title: fahrplan[i].title, sub: fahrplan[i].start + " D" + fahrplan[i].day + " @ " + fahrplan[i].room,