From 00b1719b1a4cd3d863dc0f247af0b95d4ea0c0f8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 3 May 2018 14:32:28 +0200 Subject: Replace all binds in chat --- src/Chatbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Chatbar.cpp') diff --git a/src/Chatbar.cpp b/src/Chatbar.cpp index dd5a925..55fd764 100644 --- a/src/Chatbar.cpp +++ b/src/Chatbar.cpp @@ -228,7 +228,7 @@ namespace dchat if(findOffset != string::npos) { string substr = str.replace(findOffset, substrToReplace.size(), stringToReplaceWith); - findOffset += substrToReplace.size() + stringToReplaceWith.size(); + findOffset += stringToReplaceWith.size(); } } } -- cgit v1.2.3