extra server logging, server memory leak fixed, m12

This commit is contained in:
Max-Wilhelm Bruker
2011-07-11 23:01:59 +02:00
parent 380a8b2d41
commit c8813bb2aa
6 changed files with 27 additions and 13 deletions

View File

@@ -57,8 +57,10 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
return authState;
if (authState == PasswordRight) {
if (users.contains(name))
if (users.contains(name)) {
qDebug("Login denied: would overwrite old session");
return WouldOverwriteOldSession;
}
} else if (authState == UnknownUser) {
// Change user name so that no two users have the same names,
// don't interfere with registered user names though.