comparison src/plugins/plugin_misc_text_commands.py @ 565:7573897831ee

plugin text commands: added /topic as a synonym of /title
author Goffi <goffi@goffi.org>
date Mon, 07 Jan 2013 00:56:13 +0100
parents 790be337cc41
children ca13633d3b6b
comparison
equal deleted inserted replaced
564:f65f5a324bd5 565:7573897831ee
157 room = mess_data["to"] 157 room = mess_data["to"]
158 self.host.plugins["XEP-0045"].subject(room, subject, profile) 158 self.host.plugins["XEP-0045"].subject(room, subject, profile)
159 159
160 return False 160 return False
161 161
162 def cmd_topic(self, mess_data, profile):
163 """just a synonym of /title"""
164 return self.cmd_title(mess_data, profile)
165
162 def cmd_parrot(self, mess_data, profile): 166 def cmd_parrot(self, mess_data, profile):
163 """activate Parrot mode between 2 entities, in both directions.""" 167 """activate Parrot mode between 2 entities, in both directions."""
164 #TODO: these commands must not be hardcoded, an interface should be made 168 #TODO: these commands must not be hardcoded, an interface should be made
165 # to allow plugins to register simple commands like this. 169 # to allow plugins to register simple commands like this.
166 170