X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy.py;h=01b914293971b7b412a08d391eb77a3444e794f2;hp=06563f737175a986c746f9f4bced1dd8329fda7e;hb=7e176424017ddeeb66e2d6828fd0fd8f5479b5cc;hpb=674e6c23db39fd68ab2d781d20389a1a65bb8089 diff --git a/mudpy.py b/mudpy.py index 06563f7..01b9142 100644 --- a/mudpy.py +++ b/mudpy.py @@ -562,7 +562,7 @@ class User: for old_user in universe.userlist: # the name is the same but it's not us - if hasattr(old_user, "account") and old_user.account.get("name") == self.account.get("name") and old_user is not self: + if hasattr(old_user, "account") and old_user.account and old_user.account.get("name") == self.account.get("name") and old_user is not self: # make a note of it log("User " + self.account.get("name") + " reconnected--closing old connection to " + old_user.address + ".", 2)