def remove_janitor(self, janitor):
        """Remove janitor from the room"""

        if not self.owner and not self.admin:
            raise RuntimeError("Not enough street creed to do this")

        janitor = janitor.strip().lower()
        if not janitor:
            raise ValueError("Empty strings cannot be janitors")

        if janitor not in self.config.janitors:
            return

        self.config.janitors.remove(janitor)
        self.__set_config_value("janitors", self.config.janitors)
def remove_janitor ( self , janitor ) : if not self . owner and not self . admin : raise RuntimeError ( "Not enough street creed to do this" ) janitor = janitor . strip ( ) . lower ( ) if not janitor : raise ValueError ( "Empty strings cannot be janitors" ) if janitor not in self . config . janitors : return self . config . janitors . remove ( janitor ) self . __set_config_value ( "janitors" , self . config . janitors )
Remove janitor from the room