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)
|
void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||||
{
|
{
|
||||||
return;
|
auto app = getApp();
|
||||||
// auto app = getApp();
|
MessagePtr msg = Message::createSystemMessage(message->content());
|
||||||
// MessagePtr msg = Message::createSystemMessage(message->content());
|
|
||||||
|
|
||||||
// QString channelName;
|
QString channelName;
|
||||||
// if (!TrimChannelName(message->target(), channelName)) {
|
if (!trimChannelName(message->target(), channelName)) {
|
||||||
// // Notice wasn't targeted at a single channel, send to all twitch channels
|
// Notice wasn't targeted at a single channel, send to all twitch channels
|
||||||
// app->twitch.server->forEachChannelAndSpecialChannels([msg](const auto &c) {
|
app->twitch.server->forEachChannelAndSpecialChannels([msg](const auto &c) {
|
||||||
// c->addMessage(msg); //
|
c->addMessage(msg); //
|
||||||
// });
|
});
|
||||||
|
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// auto channel = app->twitch.server->getChannelOrEmpty(channelName);
|
auto channel = app->twitch.server->getChannelOrEmpty(channelName);
|
||||||
|
|
||||||
// if (channel->isEmpty()) {
|
if (channel->isEmpty()) {
|
||||||
// debug::Log("[IrcManager:handleNoticeMessage] Channel {} not found in channel
|
debug::Log("[IrcManager:handleNoticeMessage] Channel {} not found in channel manager ",
|
||||||
// manager",
|
channelName);
|
||||||
// channelName);
|
return;
|
||||||
// return;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
// channel->addMessage(msg);
|
channel->addMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IrcMessageHandler::handleWriteConnectionNoticeMessage(Communi::IrcNoticeMessage *message)
|
void IrcMessageHandler::handleWriteConnectionNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||||
|
|
Loading…
Reference in a new issue