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
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ def reply(bot, update, args):
else:
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("@")]
else:
try: