createTimeoutMessage now also handles permaban-messages
This commit is contained in:
@@ -117,6 +117,7 @@ Message *Message::createTimeoutMessage(const QString &username, const QString &d
|
|||||||
QString text;
|
QString text;
|
||||||
|
|
||||||
text.append(username);
|
text.append(username);
|
||||||
|
if (!durationInSeconds.isEmpty()) {
|
||||||
text.append(" has been timed out");
|
text.append(" has been timed out");
|
||||||
|
|
||||||
// TODO: Implement who timed the user out
|
// TODO: Implement who timed the user out
|
||||||
@@ -129,6 +130,9 @@ Message *Message::createTimeoutMessage(const QString &username, const QString &d
|
|||||||
if (ok && timeoutDuration > 1) {
|
if (ok && timeoutDuration > 1) {
|
||||||
text.append("s");
|
text.append("s");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
text.append(" has been permanently banned");
|
||||||
|
}
|
||||||
|
|
||||||
if (reason.length() > 0) {
|
if (reason.length() > 0) {
|
||||||
text.append(": \"");
|
text.append(": \"");
|
||||||
|
|||||||
Reference in New Issue
Block a user