Renamed variables to clear some warnings.

This commit is contained in:
23rd
2019-05-08 09:51:14 +03:00
committed by pajlada
parent efec76df5b
commit 9654650bee
19 changed files with 73 additions and 109 deletions
+4 -12
View File
@@ -235,20 +235,12 @@ MessageBuilder::MessageBuilder(const UnbanAction &action)
this->message().timeoutUser = action.target.name;
QString text;
if (action.wasBan())
{
text = QString("%1 unbanned %2.") //
QString text = QString("%1 %2 %3.")
.arg(action.source.name)
.arg(QString(action.wasBan()
? "unbanned"
: "untimedout"))
.arg(action.target.name);
}
else
{
text = QString("%1 untimedout %2.") //
.arg(action.source.name)
.arg(action.target.name);
}
this->emplace<TextElement>(text, MessageElementFlag::Text,
MessageColor::System);