nit: check makeIrcMessage return value

This commit is contained in:
Rasmus Karlsson 2024-10-20 11:09:16 +02:00
parent d3eacc5d8d
commit 802edeb8de
No known key found for this signature in database

View file

@ -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");