X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=3a0b823748e94a6e2af0aa42a1ff19518beb42b9;hp=bd9b013c22beb106844fe89873fe470df74921fd;hb=092e6b212637ffbf68800584b7c1f32d1931b602;hpb=374bb1f45bed3d21ad9abd7343bf0d2fc8a56fbc diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index bd9b013c..3a0b8237 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.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 * @@ -85,8 +85,9 @@ UiStyle::UiStyle(QObject *parent) // Now initialize the mapping between FormatCodes and FormatTypes... _formatCodes["%O"] = FormatType::Base; _formatCodes["%B"] = FormatType::Bold; - _formatCodes["%S"] = FormatType::Italic; + _formatCodes["%I"] = FormatType::Italic; _formatCodes["%U"] = FormatType::Underline; + _formatCodes["%S"] = FormatType::Strikethrough; _formatCodes["%DN"] = FormatType::Nick; _formatCodes["%DH"] = FormatType::Hostmask; @@ -756,11 +757,17 @@ QString UiStyle::mircToInternal(const QString &mirc_) case '\x09': mirc += " "; break; + case '\x11': + // Monospace not supported yet + break; case '\x12': case '\x16': mirc += "%R"; break; case '\x1d': + mirc += "%I"; + break; + case '\x1e': mirc += "%S"; break; case '\x1f':