comparison sat/plugins/plugin_xep_0045.py @ 2986:37b55d87d027

plugin XEP-0045: added a warning if a message is discarded because the room has not been found
author Goffi <goffi@goffi.org>
date Tue, 02 Jul 2019 19:36:27 +0200
parents f44a95f566d2
children 6959c71ab8bf
comparison
equal deleted inserted replaced
2985:1d92ad95185f 2986:37b55d87d027
1219 # We override this method to fix subject handling 1219 # We override this method to fix subject handling
1220 # FIXME: remove this merge fixed upstream 1220 # FIXME: remove this merge fixed upstream
1221 room, user = self._getRoomUser(message) 1221 room, user = self._getRoomUser(message)
1222 1222
1223 if room is None: 1223 if room is None:
1224 log.warning(u"No room found for message: {message}"
1225 .format(message=message.toElement().toXml()))
1224 return 1226 return
1225 1227
1226 if message.subject is not None: 1228 if message.subject is not None:
1227 self.receivedSubject(room, user, message.subject) 1229 self.receivedSubject(room, user, message.subject)
1228 elif message.delay is None: 1230 elif message.delay is None: