[speak] Avoid saying multiple identical message
This commit is contained in:
parent
002f2463a3
commit
48ebc1b1f5
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue