mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
commented out the NOTICE message handle
This commit is contained in:
parent
f728a1fbd7
commit
3bcbcac869
|
@ -298,30 +298,28 @@ void IrcMessageHandler::handleModeMessage(Communi::IrcMessage *message)
|
|||
|
||||
void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||
{
|
||||
auto app = getApp();
|
||||
MessagePtr msg = Message::createSystemMessage(message->content());
|
||||
|
||||
QString channelName;
|
||||
if (!trimChannelName(message->target(), channelName)) {
|
||||
// Notice wasn't targeted at a single channel, send to all twitch channels
|
||||
app->twitch.server->forEachChannelAndSpecialChannels([msg](const auto &c) {
|
||||
c->addMessage(msg); //
|
||||
});
|
||||
|
||||
return;
|
||||
// auto app = getApp();
|
||||
// MessagePtr msg = Message::createSystemMessage(message->content());
|
||||
}
|
||||
|
||||
// QString channelName;
|
||||
// if (!TrimChannelName(message->target(), channelName)) {
|
||||
// // Notice wasn't targeted at a single channel, send to all twitch channels
|
||||
// app->twitch.server->forEachChannelAndSpecialChannels([msg](const auto &c) {
|
||||
// c->addMessage(msg); //
|
||||
// });
|
||||
auto channel = app->twitch.server->getChannelOrEmpty(channelName);
|
||||
|
||||
// return;
|
||||
// }
|
||||
if (channel->isEmpty()) {
|
||||
debug::Log("[IrcManager:handleNoticeMessage] Channel {} not found in channel manager ",
|
||||
channelName);
|
||||
return;
|
||||
}
|
||||
|
||||
// auto channel = app->twitch.server->getChannelOrEmpty(channelName);
|
||||
|
||||
// if (channel->isEmpty()) {
|
||||
// debug::Log("[IrcManager:handleNoticeMessage] Channel {} not found in channel
|
||||
// manager",
|
||||
// channelName);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// channel->addMessage(msg);
|
||||
channel->addMessage(msg);
|
||||
}
|
||||
|
||||
void IrcMessageHandler::handleWriteConnectionNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||
|
|
Loading…
Reference in a new issue