From 179527611ef4dbd9a30ff287ddc9ddcbc9ae76b6 Mon Sep 17 00:00:00 2001 From: mmb L Date: Sat, 27 Nov 2021 21:51:37 +0800 Subject: [PATCH] Rename local variable and remove unused local variable in IrcMessageBuild.cpp --- src/providers/twitch/IrcMessageHandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 47010fb82..8fa9a619d 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -827,18 +827,18 @@ void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message) { return; } - auto &channelName = hostOn ? parts[2] : parts[0]; - if (channelName.size() < 2) + auto &hostedChannelName = hostOn ? parts[2] : parts[0]; + if (hostedChannelName.size() < 2) { return; } if (hostOn) { - channelName.chop(1); + hostedChannelName.chop(1); } MessageBuilder builder; - TwitchMessageBuilder::hostingSystemMessage(channelName, &builder, - hostOn); + TwitchMessageBuilder::hostingSystemMessage(hostedChannelName, + &builder, hostOn); channel->addMessage(builder.release()); } else if (tags == "room_mods" || tags == "vips_success")