Esempio n. 1
0
 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
Esempio n. 2
0
 def handle_gmcp(self, bytes):
     if self.allow_gmcp == True:
         GmcpHandler.process(bytes, self.factory.realm)