diff --git a/evennia/server/portal/naws.py b/evennia/server/portal/naws.py index 991e61c04e..d3c62a4131 100644 --- a/evennia/server/portal/naws.py +++ b/evennia/server/portal/naws.py @@ -46,7 +46,7 @@ class Naws: self.protocol().protocol_flags["SCREENWIDTH"] = { 0: DEFAULT_WIDTH } # windowID (0 is root):width - self.protocol.protocol_flags["SCREENHEIGHT"] = {0: DEFAULT_HEIGHT} # windowID:width + self.protocol().protocol_flags["SCREENHEIGHT"] = {0: DEFAULT_HEIGHT} # windowID:width self.protocol().negotiationMap[NAWS] = self.negotiate_sizes self.protocol().do(NAWS).addCallbacks(self.do_naws, self.no_naws) diff --git a/evennia/server/portal/ttype.py b/evennia/server/portal/ttype.py index dbc7d6b8a9..5427cd40e8 100644 --- a/evennia/server/portal/ttype.py +++ b/evennia/server/portal/ttype.py @@ -93,7 +93,7 @@ class Ttype: stored on protocol.protocol_flags under the TTYPE key. """ - options = self.protocol.protocol_flags + options = self.protocol().protocol_flags if options and options.get("TTYPE", False) or self.ttype_step > 3: return