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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue