1
0
forked from 0ad/0ad

Clear g_ChatTimers too in case the new /clear command is used from the session. Refs #3396.

This was SVN commit r17467.
This commit is contained in:
elexis 2015-12-14 04:14:58 +00:00
parent 4dbc9b8b1d
commit 25e6136786

View File

@ -191,4 +191,11 @@ function clearChatMessages()
{
g_ChatMessages.length = 0;
Engine.GetGUIObjectByName("chatText").caption = "";
try {
for (let timer of g_ChatTimers)
clearTimeout(timer);
g_ChatTimers.length = 0;
} catch (e) {
}
}