fix name of bot in testbot

This commit is contained in:
Aleksej 2022-06-14 16:39:19 +02:00
parent 36f4e9b324
commit 20d4998c63
No known key found for this signature in database
GPG Key ID: 4DB9C85100A6D17F

View File

@ -97,13 +97,13 @@ class MUCBot(slixmpp.ClientXMPP):
unknownmsg = True unknownmsg = True
if self.room1 in str(msg['from']): if self.room1 in str(msg['from']):
for i in results2: for i in results2:
if 'xmppbot: ' + i[0] == body: if "admin: " + i[0] == body:
i[2] = rtime i[2] = rtime
unknownmsg = False unknownmsg = False
if self.room2 in str(msg['from']): if self.room2 in str(msg['from']):
for i in results1: for i in results1:
if 'xmppbot: ' + i[0] == body: if "admin: " + i[0] == body:
i[2] = rtime i[2] = rtime
unknownmsg = False unknownmsg = False