diff --git a/src/lolautoaccept.cpp b/src/lolautoaccept.cpp index 29c341b..804a60c 100644 --- a/src/lolautoaccept.cpp +++ b/src/lolautoaccept.cpp @@ -110,8 +110,11 @@ void LolAutoAccept::setOnRuneChangeFunc(onruneschange_func on) { } void LolAutoAccept::setAutoWriteText(bool enabled, const std::string& text) { + if ( enabled && !autoWriteTextEnabled ) { + // only re-write on rising edge + autoWriteTextDone = false; + } autoWriteTextEnabled = enabled; - autoWriteTextDone = false; autoWriteText = text; }