mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
miscellaneous refactors (#4521)
This commit is contained in:
parent
994704d353
commit
ae9b8b8f34
8 changed files with 32 additions and 50 deletions
|
|
@ -893,8 +893,7 @@ Response::ResponseCode AbstractServerSocketInterface::cmdWarnUser(const Command_
|
|||
delete se;
|
||||
}
|
||||
|
||||
QListIterator<QString> modIterator(moderatorList);
|
||||
foreach (QString moderator, moderatorList) {
|
||||
for (QString &moderator : moderatorList) {
|
||||
QString notificationMessage = sendingModerator + " has sent a warning with the following information";
|
||||
notificationMessage.append("\n Username: " + userName);
|
||||
notificationMessage.append("\n Reason: " + warningReason);
|
||||
|
|
@ -987,8 +986,7 @@ Response::ResponseCode AbstractServerSocketInterface::cmdBanFromServer(const Com
|
|||
}
|
||||
}
|
||||
|
||||
QListIterator<QString> modIterator(moderatorList);
|
||||
foreach (QString moderator, moderatorList) {
|
||||
for (QString &moderator : moderatorList) {
|
||||
QString notificationMessage =
|
||||
QString::fromStdString(userInfo->name()).simplified() + " has placed a ban with the following information";
|
||||
if (!userName.isEmpty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue