commented out the NOTICE message handle

This commit is contained in:
fourtf 2018-06-23 23:08:15 +02:00
parent f728a1fbd7
commit 3bcbcac869

View file

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