X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=mudpy%2Fmisc.py;h=7c013a8f9a3f54c1a2d7e758ccf8a233442f0fed;hb=00c9bcf7148bbc42ef0963ec4673d2673a87441b;hp=930d4d7a72bc8ce18e001e78e6b4b61b04f80769;hpb=b2e5d66837e8efc2cdc6eaa233a2cd94a8c3741d;p=mudpy.git diff --git a/mudpy/misc.py b/mudpy/misc.py index 930d4d7..7c013a8 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -1,6 +1,6 @@ """Miscellaneous functions for the mudpy engine.""" -# Copyright (c) 2004-2018 mudpy authors. Permission to use, copy, +# Copyright (c) 2004-2019 mudpy authors. Permission to use, copy, # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. @@ -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")): @@ -722,7 +722,7 @@ class User: if not just_prompt: output += "$(eol)" if add_prompt: - output += "> " + output += self.account.get("prompt", ">") + " " mode = self.avatar.get("mode") if mode: output += "(" + mode + ") "