diff --git a/src/commands/authentication.cpp b/src/commands/authentication.cpp
index afe97b3..4ab5c8a 100644
--- a/src/commands/authentication.cpp
+++ b/src/commands/authentication.cpp
@@ -238,8 +238,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];
     }