def handle_command(self, command): if not self.handler: self.serr(None, visible_command(command), Exception("No handler set!")) else: self.sdebug(None, visible_command(command)) return self.handler.handle_command(command)
def lineReceived(self, line): self.sdebug(None, visible_command(line)) self.handle_command(line)
def send_message(self, msg): self.sdebug(None, visible_command(msg)) self.sendLine(msg)