diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Room.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Room.cpp b/src/Room.cpp index 44407c1..d3b91db 100644 --- a/src/Room.cpp +++ b/src/Room.cpp @@ -502,7 +502,7 @@ namespace dchat { std::lock_guard<std::recursive_mutex> lock(roomModifyMutex); if(loggedIn) - throw std::runtime_error(std::string("You are already logged in as ") + username); + throw std::runtime_error(std::string("You are already logged in as ") + currentUsername); auto storedNodes = database->getStoredNodeUserInfoDecrypted(username, password); loggedIn = true; @@ -524,7 +524,7 @@ namespace dchat { std::lock_guard<std::recursive_mutex> lock(roomModifyMutex); if(loggedIn) - throw std::runtime_error(std::string("You are already logged in as ") + username); + throw std::runtime_error(std::string("You are already logged in as ") + currentUsername); database->storeUserWithoutNodes(username, password); loggedIn = true; |