wallis2xk
08-29-2006, 03:47 PM
Hi,
I'd been trying to use to use the createRoom(roomOb, auto) functionality so when a room already exists calling createRoom joins you to the room. It wasn't working for me, so I had a look through the ES class and came across this in the createRoom function:
if (auto == undefined || auto == "true") {
auto = true;
} else {
auto = false;
}
which is overwriting the auto value if you supply auto as a proper Boolean. I just took out the else to solve it and is working nicely now.
I'd been trying to use to use the createRoom(roomOb, auto) functionality so when a room already exists calling createRoom joins you to the room. It wasn't working for me, so I had a look through the ES class and came across this in the createRoom function:
if (auto == undefined || auto == "true") {
auto = true;
} else {
auto = false;
}
which is overwriting the auto value if you supply auto as a proper Boolean. I just took out the else to solve it and is working nicely now.