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,6 +512,8 @@ std::vector<MessagePtr> parseUserNoticeMessage(Channel *channel,
|
|||
|
||||
auto [built, highlight] = MessageBuilder::makeIrcMessage(
|
||||
channel, message, args, content, 0);
|
||||
if (built)
|
||||
{
|
||||
built->flags.set(MessageFlag::Subscription);
|
||||
built->flags.unset(MessageFlag::Highlighted);
|
||||
if (mirrored)
|
||||
|
@ -521,6 +523,7 @@ std::vector<MessagePtr> parseUserNoticeMessage(Channel *channel,
|
|||
builtMessages.emplace_back(std::move(built));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto it = tags.find("system-msg");
|
||||
|
||||
|
|
Loading…
Reference in a new issue