def _handle_launch_missile(self):
     self.logger.info("Handling command 'launch-missile'")
     self.com.send_line(dedent("""
         Error: {launched}
     """).format(
         launched=color_error("Another missile has already been launched!")))
     return True
    def _should_send_to_subproc(self, line):
        if match("\s*!disarm-missile", line):
            self.com.send_line(dedent("""
                {failed}

                Please check the entered ID and/or password..
            """).format(failed=color_error("Failed to disarm missile!")))
            return False
        return super(GoodBadHandler, self)._should_send_to_subproc(line)
    def _should_send_to_subproc(self, line):
        if match("\s*!enable-disarm", line):
            self.com.send_line(dedent("""
                {failed}

                Please check the entered password..
            """).format(failed=color_error("Failed to enable the disarm command!")))
            return False
        return super(HelloBOFHandler, self)._should_send_to_subproc(line)
    def _should_send_to_subproc(self, line):
        if match("\s*!unlock-console", line):
            self.com.send_line(dedent("""
                {failed}

                Please check the entered password..
            """).format(failed=color_error("Failed to unlock the console!")))
            return False
        return super(PyJailHandler, self)._should_send_to_subproc(line)