HandleRoomAdded (buged bool.parse)
Posted: 04 Nov 2010, 13:39
I found an other error on the HandleRoomAdded function.
the boolean parsing was throwing exception. To fix it change:To:To realy fix it, change all this vars: isTemp, isGame, isPriv and isLimbo.
Hope that helps.
EDIT: I think this bug also happen every other bool.parse. All that should be changed.
EDIT2: Not all them! On LoadConfigCompleted, the loading of the vars "debug" and "smartConnect" are correct, don't change that two.
the boolean parsing was throwing exception. To fix it change:
Code: Select all
isTemp = bool.Parse(xml.Element("body").Element("rm").Attribute("temp").Value);Code: Select all
isTemp = int.Parse(xml.Element("body").Element("rm").Attribute("temp").Value) == 1;Hope that helps.
EDIT: I think this bug also happen every other bool.parse. All that should be changed.
EDIT2: Not all them! On LoadConfigCompleted, the loading of the vars "debug" and "smartConnect" are correct, don't change that two.