diff options
Diffstat (limited to 'src/Chatbar.cpp')
-rw-r--r-- | src/Chatbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } } } |