mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Rename local variable and remove unused local variable in IrcMessageBuild.cpp
This commit is contained in:
parent
ec966a1791
commit
179527611e
1 changed files with 5 additions and 5 deletions
|
@ -827,18 +827,18 @@ void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto &channelName = hostOn ? parts[2] : parts[0];
|
auto &hostedChannelName = hostOn ? parts[2] : parts[0];
|
||||||
if (channelName.size() < 2)
|
if (hostedChannelName.size() < 2)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (hostOn)
|
if (hostOn)
|
||||||
{
|
{
|
||||||
channelName.chop(1);
|
hostedChannelName.chop(1);
|
||||||
}
|
}
|
||||||
MessageBuilder builder;
|
MessageBuilder builder;
|
||||||
TwitchMessageBuilder::hostingSystemMessage(channelName, &builder,
|
TwitchMessageBuilder::hostingSystemMessage(hostedChannelName,
|
||||||
hostOn);
|
&builder, hostOn);
|
||||||
channel->addMessage(builder.release());
|
channel->addMessage(builder.release());
|
||||||
}
|
}
|
||||||
else if (tags == "room_mods" || tags == "vips_success")
|
else if (tags == "room_mods" || tags == "vips_success")
|
||||||
|
|
Loading…
Reference in a new issue