Merge branch 'password-changing' into password-requirements

This commit is contained in:
MangosArentLiterature 2021-05-08 23:28:53 -05:00
commit bedf24a7d6

View File

@ -247,8 +247,10 @@ void AOClient::cmdChangePassword(int argc, QStringList argv)
QString username;
QString password;
if (argc == 1) {
if (moderator_name.isEmpty())
if (moderator_name.isEmpty()) {
sendServerMessage("You are not logged in.");
return;
}
username = moderator_name;
password = argv[0];
}