mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
nit: check makeIrcMessage return value
This commit is contained in:
parent
d3eacc5d8d
commit
802edeb8de
|
@ -512,13 +512,16 @@ std::vector<MessagePtr> parseUserNoticeMessage(Channel *channel,
|
||||||
|
|
||||||
auto [built, highlight] = MessageBuilder::makeIrcMessage(
|
auto [built, highlight] = MessageBuilder::makeIrcMessage(
|
||||||
channel, message, args, content, 0);
|
channel, message, args, content, 0);
|
||||||
built->flags.set(MessageFlag::Subscription);
|
if (built)
|
||||||
built->flags.unset(MessageFlag::Highlighted);
|
|
||||||
if (mirrored)
|
|
||||||
{
|
{
|
||||||
built->flags.set(MessageFlag::SharedMessage);
|
built->flags.set(MessageFlag::Subscription);
|
||||||
|
built->flags.unset(MessageFlag::Highlighted);
|
||||||
|
if (mirrored)
|
||||||
|
{
|
||||||
|
built->flags.set(MessageFlag::SharedMessage);
|
||||||
|
}
|
||||||
|
builtMessages.emplace_back(std::move(built));
|
||||||
}
|
}
|
||||||
builtMessages.emplace_back(std::move(built));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue