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;
|
||||
}
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue