Mercurial > libervia-backend
comparison src/plugins/plugin_misc_text_commands.py @ 535:790be337cc41
bridge: fixed D-Bus warning in frontend side of bridge
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Nov 2012 19:52:59 +0100 |
parents | 9a3913fb0a6c |
children | 7573897831ee |
comparison
equal
deleted
inserted
replaced
534:07f369ed3988 | 535:790be337cc41 |
---|---|
159 | 159 |
160 return False | 160 return False |
161 | 161 |
162 def cmd_parrot(self, mess_data, profile): | 162 def cmd_parrot(self, mess_data, profile): |
163 """activate Parrot mode between 2 entities, in both directions.""" | 163 """activate Parrot mode between 2 entities, in both directions.""" |
164 #TODO: these commands must not be hardcoded, an interface should be made | |
165 # to allow plugins to register simple commands like this. | |
166 | |
164 debug("Catched parrot command") | 167 debug("Catched parrot command") |
165 | 168 |
166 try: | 169 try: |
167 link_left_jid = jid.JID(mess_data["unparsed"].strip()) | 170 link_left_jid = jid.JID(mess_data["unparsed"].strip()) |
168 if not link_left_jid.user or not link_left_jid.host: | 171 if not link_left_jid.user or not link_left_jid.host: |