diff --git a/game/gamesrc/conf/examples/connection_screens.py b/game/gamesrc/conf/examples/connection_screens.py index f8b2e64bfa..955b565b45 100644 --- a/game/gamesrc/conf/examples/connection_screens.py +++ b/game/gamesrc/conf/examples/connection_screens.py @@ -25,14 +25,17 @@ new module. """ -from src.utils import utils from src.commands.connection_screen import DEFAULT_SCREEN +## uncomment these for the name and version +# from django.conf import settings +# from src.utils import utils + # # A copy of the default screen to modify # CUSTOM_SCREEN = \ #"""{b=============================================================={n -# Welcome to {gEvennia{n, version %s! +# Welcome to {g%s{n, version %s! # # If you have an existing account, connect to it by typing: # {wconnect {n @@ -41,13 +44,14 @@ from src.commands.connection_screen import DEFAULT_SCREEN # # If you have spaces in your username, enclose it in quotes. # Enter {whelp{n for more info. {wlook{n will re-show this screen. -#{b=============================================================={n""" % utils.get_evennia_version() +#{b=============================================================={n""" \ +# % (settings.SERVERNAME, utils.get_evennia_version()) # # Mux-like alternative screen for contrib/mux_login.py # MUX_SCREEN = \ # """{b=============================================================={n -# Welcome to {gEvennia{n, version %s! +# Welcome to {g%s{n, version %s! # # If you have an existing account, connect to it by typing: # {wconnect {n @@ -55,11 +59,13 @@ from src.commands.connection_screen import DEFAULT_SCREEN # {wcreate \"\" {n # # Enter {whelp{n for more info. {wlook{n will re-load this screen. -#{b=============================================================={n""" % utils.get_evennia_version() +#{b=============================================================={n""" \ +# % (settings.SERVERNAME, utils.get_evennia_version()) # # Menu login minimal header for contrib/menu_login.py # MENU_SCREEN = \ # """{b=============================================================={n -# Welcome to {gEvennnia{n, version %s! -# {b=============================================================={n""" % utils.get_evennia_version() +# Welcome to {g%s{n, version %s! +# {b=============================================================={n""" \ +# % (settings.SERVERNAME, utils.get_evennia_version()) diff --git a/src/commands/connection_screen.py b/src/commands/connection_screen.py index 2f7441293b..4c0d268099 100644 --- a/src/commands/connection_screen.py +++ b/src/commands/connection_screen.py @@ -3,11 +3,12 @@ # and run from game/gamesrc/world/connection_screens.py. # +from django.conf import settings from src.utils import utils DEFAULT_SCREEN = \ """{b=============================================================={n - Welcome to {gEvennia{n, version %s! + Welcome to {g%s{n, version %s! If you have an existing account, connect to it by typing: {wconnect {n @@ -16,4 +17,5 @@ DEFAULT_SCREEN = \ If you have spaces in your username, enclose it in quotes. Enter {whelp{n for more info. {wlook{n will re-show this screen. -{b=============================================================={n""" % utils.get_evennia_version() +{b=============================================================={n""" \ +% (settings.SERVERNAME, utils.get_evennia_version())