comparison src/plugins/plugin_exp_parrot.py @ 927:cd150dd947e3

plugin text-commands: fixed name conflicts management + plugin parrot: removed now done TODO
author Goffi <goffi@goffi.org>
date Mon, 24 Mar 2014 13:49:37 +0100
parents d609581bf74a
children 301b342c697a
comparison
equal deleted inserted replaced
926:d609581bf74a 927:cd150dd947e3
129 except (AttributeError, KeyError): 129 except (AttributeError, KeyError):
130 pass 130 pass
131 131
132 def cmd_parrot(self, mess_data, profile): 132 def cmd_parrot(self, mess_data, profile):
133 """activate Parrot mode between 2 entities, in both directions.""" 133 """activate Parrot mode between 2 entities, in both directions."""
134 #TODO: these commands must not be hardcoded, an interface should be made
135 # to allow plugins to register simple commands like this.
136
137 debug("Catched parrot command") 134 debug("Catched parrot command")
138 txt_cmd = self.host.plugins[C.TEXT_CMDS] 135 txt_cmd = self.host.plugins[C.TEXT_CMDS]
139 136
140 try: 137 try:
141 link_left_jid = jid.JID(mess_data["unparsed"].strip()) 138 link_left_jid = jid.JID(mess_data["unparsed"].strip())