[speak] Avoid saying multiple identical message
This commit is contained in:
parent
002f2463a3
commit
48ebc1b1f5
@ -120,6 +120,8 @@ def append_message(msg):
|
|||||||
|
|
||||||
if hasattr(msg, "message") and msg.message.find("TYPING ") == 0:
|
if hasattr(msg, "message") and msg.message.find("TYPING ") == 0:
|
||||||
return
|
return
|
||||||
|
if last is not None and last.message == msg.message:
|
||||||
|
return
|
||||||
|
|
||||||
vprnt = SpeakerVisitor(last)
|
vprnt = SpeakerVisitor(last)
|
||||||
msg.accept(vprnt)
|
msg.accept(vprnt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user