fmtType |= UiStyle::Hostmask;
else if(subElement == "modeflags")
fmtType |= UiStyle::ModeFlags;
+ else if(subElement == "url")
+ fmtType |= UiStyle::Url;
else {
qWarning() << Q_FUNC_INFO << tr("Invalid subelement name in %1").arg(decl);
return UiStyle::Invalid;
fmtType |= UiStyle::ErrorMsg;
else if(msgType == "daychange")
fmtType |= UiStyle::DayChangeMsg;
+ else if(msgType == "topic")
+ fmtType |= UiStyle::TopicMsg;
else {
qWarning() << Q_FUNC_INFO << tr("Invalid message type in %1").arg(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")
return UiStyle::Invalid;
}
if(condName == "fg-color")
- fmtType |= 0x00400000 | (col << 24);
+ fmtType |= 0x00400000 | (quint32)(col << 24);
else
- fmtType |= 0x00800000 | (col << 28);
+ fmtType |= 0x00800000 | (quint32)(col << 28);
} else {
qWarning() << Q_FUNC_INFO << tr("Unhandled condition: %1").arg(condName);
return UiStyle::Invalid;
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;