Fix bot's rooms' ranks not being recognized

Copy-paste of Morfent's fix.