コード例 #1
0
ファイル: triggers.py プロジェクト: willxyu/pymudclient
 def send(self, line, echo = False):
     """Send a line to the MUD."""
     #need to spin a new realm out here to make sure that the writings from
     #the alias go after ours.
     realm = AliasMatchingRealm(line, echo, parent = self, root = self.root,
                                send_line_to_mud = self.send_line_to_mud)
     realm.process()
コード例 #2
0
ファイル: processor.py プロジェクト: dmoggles/pymudclient
 def send(self, line, echo = True):
     """Match aliases against the line and perhaps send it to the MUD."""
     echo = not self.server_echo and echo
     realm = AliasMatchingRealm(line, echo, parent = self, root = self)
     try:       
         realm.process()
     except:
         self.handle_exception(traceback.format_exc())
コード例 #3
0
ファイル: realms.py プロジェクト: dmoggles/pymudclient
 def send(self, line, echo = True):
     """Match aliases against the line and perhaps send it to the MUD."""
     echo = not self.server_echo and (echo and not self.accessibility_mode)
     realm = AliasMatchingRealm(line, echo, parent = self, root = self,
                                send_line_to_mud = self.telnet.sendLine)
     realm.process()