def parseLine(self, text, clientID = 0): cmd, result = None, admin_chat_cmd.parseCommandLine(text) if not result: return (False, None) if result.hasError(): g_messengerEvents.onErrorReceived(result.getError()) else: decorator = admin_chat_cmd.makeDecorator(result, clientID) if self.send(decorator): cmd = decorator return (True, cmd)
def parseLine(self, text, clientID=0): cmd, result = None, admin_chat_cmd.parseCommandLine(text) if not result: return (False, None) if result.hasError(): g_messengerEvents.onErrorReceived(result.getError()) else: decorator = admin_chat_cmd.makeDecorator(result, clientID) if self.send(decorator): cmd = decorator return (True, cmd)