bypass deleted messages (or rather messages without content)

This commit is contained in:
Morgan McMillian 2018-01-09 16:28:53 -08:00
parent 10209348b3
commit eef6224007

View file

@ -129,6 +129,7 @@ class ChannelMonitor(threading.Thread):
if msg.source.id == app.config['PNUTCLIENT_ID']: if msg.source.id == app.config['PNUTCLIENT_ID']:
continue continue
if 'content' in msg:
user = self.generate_matrix_id(msg.user.username) user = self.generate_matrix_id(msg.user.username)
text = msg.content.text + "\n" text = msg.content.text + "\n"
# dt = datetime.datetime.strptime(msg.created_at, "%Y-%m-%dT%H:%M:%SZ") # dt = datetime.datetime.strptime(msg.created_at, "%Y-%m-%dT%H:%M:%SZ")