comparison src/plugins/plugin_xep_0045.py @ 742:03744d9ebc13

plugin XEP-0033: implementation of the addressing feature: - frontends pass the recipients in the extra parameter of sendMessage - backend checks if the target server supports the feature (this is not done yet by prosody plugin) - features and identities are cached per profile and server - messages are duplicated in history for now (TODO: redesign the database) - echos signals are also duplicated to the sender (FIXME)
author souliane <souliane@mailoo.org>
date Wed, 11 Dec 2013 17:16:53 +0100
parents f47d7c09c60b
children 5a131930348d
comparison
equal deleted inserted replaced
741:00318e60a06a 742:03744d9ebc13
185 return self.clients[profile].rec_subjects.values() 185 return self.clients[profile].rec_subjects.values()
186 186
187 def getMUCService(self, profile): 187 def getMUCService(self, profile):
188 """Return the MUC service or None""" 188 """Return the MUC service or None"""
189 muc_service = None 189 muc_service = None
190 for service in self.host.memory.getServerServiceEntities("conference", "text", profile): 190 for service in self.host.memory.getServerServiceEntities("conference", "text", profile=profile):
191 if not ".irc." in service.userhost(): 191 if not ".irc." in service.userhost():
192 #FIXME: 192 #FIXME:
193 #This awfull ugly hack is here to avoid an issue with openfire: the irc gateway 193 #This awfull ugly hack is here to avoid an issue with openfire: the irc gateway
194 #use "conference/text" identity (instead of "conference/irc"), there is certainly a better way 194 #use "conference/text" identity (instead of "conference/irc"), there is certainly a better way
195 #to manage this, but this hack fill do it for test purpose 195 #to manage this, but this hack fill do it for test purpose