def post_chat(self, msg, is_me=False, is_a=False):
if len(msg) > self.config.max_message:<EOL><INDENT>raise ValueError(<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>while not self.user.nick:<EOL><INDENT>with ARBITRATOR.condition:<EOL><INDENT>ARBITRATOR.condition.wait()<EOL><DEDENT><DEDENT>if is_a:<EOL><INDENT>if not self.admin and not self.staff:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>self.conn.make_call("<STR_LIT>", self.user.nick, "<STR_LIT:a>", msg)<EOL>return<EOL><DEDENT>if is_me:<EOL><INDENT>self.conn.make_call("<STR_LIT>", self.user.nick, "<STR_LIT>", msg)<EOL>return<EOL><DEDENT>self.conn.make_call("<STR_LIT>", self.user.nick, msg)<EOL>
Posts a msg to this room's chat. Set me=True if you want to /me