X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Futil.cpp;h=e3c1159d1b60d6c4ba55a437603319f9ae3c95b3;hb=899709300734acc2bac01b1d57a1fd8fe2a6d923;hp=a59db8fe30979f3dd2653a7d15567756ede35ad1;hpb=04c25ed29d5ad146c1724a52d7b8318abdca4c04;p=quassel.git diff --git a/src/common/util.cpp b/src/common/util.cpp index a59db8fe..e3c1159d 100644 --- a/src/common/util.cpp +++ b/src/common/util.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -73,7 +73,7 @@ bool isChannelName(const QString &str) QString stripFormatCodes(QString message) { - static QRegExp regEx{"\x03(\\d\\d?(,\\d\\d?)?)?|[\x02\x0f\x12\x16\x1d\x1f]"}; + static QRegExp regEx{"\x03(\\d\\d?(,\\d\\d?)?)?|\x04([\\da-fA-F]{6}(,[\\da-fA-F]{6})?)?|[\x02\x0f\x11\x12\x16\x1d\x1e\x1f]"}; return message.remove(regEx); }