Make sure that /reply doesn't duplicate mentions

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-28 16:33:25 +02:00
parent 4306a2ccb1
commit fb407786a6

View file

@ -342,7 +342,7 @@ def reply(bot, update, args):
else: else:
mentions = [] mentions = []
if "@%s" % sender.strip("@") != "@%s" % two.whoami().strip("@"): if ("@%s" % sender.strip("@") != "@%s" % two.whoami().strip("@")) and not ("@%s" % sender.strip("@")) in [("@%s" % a.strip("@")) for a in args]:
first = ["@%s" % sender.strip("@")] first = ["@%s" % sender.strip("@")]
else: else:
try: try: