Use state="channel-event" rather than "event" to make things more obvious
[quassel.git] / src / uisupport / qssparser.cpp
index 7200e58..ccb2204 100644 (file)
@@ -262,7 +262,7 @@ quint64 QssParser::parseFormatType(const QString &decl) {
               qWarning() << Q_FUNC_INFO << tr("Senderhash can be at most \"0x0f\"!");
               return UiStyle::Invalid;
             }
-            fmtType |= val << 48;
+            fmtType |= ++val << 48;
           }
       } else if(condName == "format") {
         if(condValue == "bold")
@@ -344,7 +344,7 @@ quint32 QssParser::parseItemFormatType(const QString &decl) {
     if(!state.isEmpty()) {
       if(state == "inactive")
         fmtType |= UiStyle::InactiveBuffer;
-      else if(state == "event")
+      else if(state == "channel-event")
         fmtType |= UiStyle::ActiveBuffer;
       else if(state == "unread-message")
         fmtType |= UiStyle::UnreadBuffer;