Fix comparisons for pyflakes 2.1
[mudpy.git] / mudpy / misc.py
index 2bf4db3..7c013a8 100644 (file)
@@ -636,7 +636,7 @@ class User:
 
     def authenticate(self):
         """Flag the user as authenticated and disconnect duplicates."""
-        if self.state is not "authenticated":
+        if self.state != "authenticated":
             self.authenticated = True
             if ("mudpy.limit" in universe.contents and self.account.subkey in
                     universe.contents["mudpy.limit"].get("admins")):