diff --git a/mw.js b/mw.js index e81ce9e5acc98da791c7206234edfc4aca383fbe..8f4257ff899f77e54912e33b22482ef109019e4f 100644 --- a/mw.js +++ b/mw.js @@ -6,7 +6,7 @@ // setting it to 0 disables it. // This can be set within the talker by issuing the command ",debug" var debugmode = 0; - +var replayed = false; // If we don't have any colour info then create space for it if (mw.store["usercolours"] === undefined) { mw.store["usercolours"] = "{}"; @@ -337,8 +337,9 @@ function handleEvent(event) { } //if it's us, then do a auto replay but not in debugmode - if (tje.user == mw.whoami() && !debugmode >= 1) { + if (tje.user == mw.whoami() && !debugmode >= 1 && !replayed) { mw.exec("replay count 50"); + replayed = true; } //stop talker_join handling