Make sure that /reply doesn't duplicate mentions
This commit is contained in:
parent
4306a2ccb1
commit
fb407786a6
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue