From 5be01b1d14362bfa61ad912e5eeac895623edd9a Mon Sep 17 00:00:00 2001 From: Rat Date: Fri, 28 Aug 2009 00:31:27 +0200 Subject: *temp fix for the new "huge icons in chat" exploit *you have to enable ChatFakeMessagePreventing in config file to work --HG-- branch : trunk --- src/shared/Util.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/Util.cpp') diff --git a/src/shared/Util.cpp b/src/shared/Util.cpp index c0c8dc62b9d..41ed9c0fa8b 100644 --- a/src/shared/Util.cpp +++ b/src/shared/Util.cpp @@ -158,6 +158,9 @@ void stripLineInvisibleChars(std::string &str) if(wpos < str.size()) str.erase(wpos,str.size()); + if(str.find("|TInterface")!=std::string::npos) + str.clear(); + } std::string secsToTimeString(uint32 timeInSecs, bool shortText, bool hoursOnly) -- cgit v1.2.3