diff --git a/templates/editor.html b/templates/editor.html
index 03ecc37..3d3aeeb 100755
--- a/templates/editor.html
+++ b/templates/editor.html
@@ -49,7 +49,12 @@
// console.log("found default channel to post: "+servers[hostname]+channel);
var option = $("option[value='"+servers[hostname]+channel+"']");
// console.log(option);
- option.prop('selected', true)
+ option.prop('selected', true);
+ }
+ if (servers[hostname]) {
+ var badoptions = $("select#channel option:not([value^='"+servers[hostname]+"'])");
+ console.log(badoptions);
+ badoptions.remove();
}
});