comparison src/plugins/plugin_exp_parrot.py @ 529:c18e0e108925

plugin groupblog: fixed GROUP and JID publishers_type in getMassiveLastGroupBlogs and massiveSubscribeGroupBlogs
author Goffi <goffi@goffi.org>
date Mon, 22 Oct 2012 00:10:21 +0200
parents d67f0ce83530
children ca13633d3b6b
comparison
equal deleted inserted replaced
528:f899f6e2a9d1 529:c18e0e108925
85 entity_type = "contact" 85 entity_type = "contact"
86 if entity_type == 'chatroom': 86 if entity_type == 'chatroom':
87 src_txt = from_jid.resource 87 src_txt = from_jid.resource
88 if src_txt == self.host.plugins["XEP-0045"].getRoomNick(from_jid.userhost(), profile): 88 if src_txt == self.host.plugins["XEP-0045"].getRoomNick(from_jid.userhost(), profile):
89 #we won't repeat our own messages 89 #we won't repeat our own messages
90 print "\n\nDISCARD\n\n"
91 return True 90 return True
92 else: 91 else:
93 src_txt = from_jid.user 92 src_txt = from_jid.user
94 msg = "[%s] %s" % (src_txt, mess_body) 93 msg = "[%s] %s" % (src_txt, mess_body)
95 94