Remove ban reasons because they are not a thing in IRC anymore (#2650)

This commit is contained in:
Mm2PL
2021-04-25 13:44:12 +00:00
committed by GitHub
parent 675f99e9cc
commit 08f2773f30
3 changed files with 5 additions and 19 deletions
+3 -9
View File
@@ -416,22 +416,16 @@ void IrcMessageHandler::handleClearChatMessage(Communi::IrcMessage *message)
// get username, duration and message of the timed out user
QString username = message->parameter(1);
QString durationInSeconds, reason;
QString durationInSeconds;
QVariant v = message->tag("ban-duration");
if (v.isValid())
{
durationInSeconds = v.toString();
}
v = message->tag("ban-reason");
if (v.isValid())
{
reason = v.toString();
}
auto timeoutMsg =
MessageBuilder(timeoutMessage, username, durationInSeconds, reason,
false, calculateMessageTimestamp(message))
MessageBuilder(timeoutMessage, username, durationInSeconds, false,
calculateMessageTimestamp(message))
.release();
chan->addOrReplaceTimeout(timeoutMsg);