def show_gmcp(self,match,realm): tag = match.group(1) if tag != None and tag in realm.root.gmcp: realm.write(GmcpHandler.gmcpToString(realm.root.gmcp[tag]), soft_line_start=True) else: realm.write(GmcpHandler.gmcpToString(realm.root.gmcp), soft_line_start=True) realm.send_to_mud=False
def handle_gmcp(self, bytes): if self.allow_gmcp == True: GmcpHandler.process(bytes, self.factory.realm)