From cc18422368c9580761e625710009f29851a5b57d Mon Sep 17 00:00:00 2001 From: Jonas Weinz Date: Thu, 4 Apr 2019 16:36:37 +0200 Subject: [PATCH] friends fix for temporary sessions --- connection_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connection_handler.py b/connection_handler.py index e20b7f4..04a820c 100644 --- a/connection_handler.py +++ b/connection_handler.py @@ -585,6 +585,9 @@ class ConnectionHandler(object): # check for user: if valid_name(friend): + if not conn.is_registered_user: + success = False + msg = "you cannot have friends without an account" if friend in self.user_manager.get_friends_for_user(conn.user_name): success = False msg = f"'{friend}' is already your friend"