Inform clients they are not logged in
This commit is contained in:
parent
b7d95de9dc
commit
7b100ba2ad
@ -238,8 +238,10 @@ void AOClient::cmdChangePassword(int argc, QStringList argv)
|
|||||||
QString username;
|
QString username;
|
||||||
QString password;
|
QString password;
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
if (moderator_name.isEmpty())
|
if (moderator_name.isEmpty()) {
|
||||||
|
sendServerMessage("You are not logged in.");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
username = moderator_name;
|
username = moderator_name;
|
||||||
password = argv[0];
|
password = argv[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user