log moderation stats in the uptime table (#3215)

This commit is contained in:
Zach H 2018-05-02 17:31:54 -04:00 committed by GitHub
parent 661e00f563
commit 2520d07ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 136 additions and 121 deletions

View file

@ -56,8 +56,8 @@ private slots:
public:
mutable QReadWriteLock clientsLock, roomsLock; // locking order: roomsLock before clientsLock
Server(QObject *parent = 0);
~Server();
Server(QObject *parent = nullptr);
~Server() = default;
AuthenticationResult loginUser(Server_ProtocolHandler *session,
QString &name,
const QString &password,
@ -87,7 +87,7 @@ public:
}
void addClient(Server_ProtocolHandler *player);
void removeClient(Server_ProtocolHandler *player);
QList<QString> getOnlineModeratorList();
QList<QString> getOnlineModeratorList() const;
virtual QString getLoginMessage() const
{
return QString();
@ -187,8 +187,6 @@ public:
void sendIsl_GameCommand(const CommandContainer &item, int serverId, qint64 sessionId, int roomId, int playerId);
void sendIsl_RoomCommand(const CommandContainer &item, int serverId, qint64 sessionId, int roomId);
void addExternalUser(const ServerInfo_User &userInfo);
void removeExternalUser(const QString &userName);
const QMap<QString, Server_AbstractUserInterface *> &getExternalUsers() const
{
return externalUsers;