From d140c9883f0df0eb37c02040bb2f723f6f84a5e9 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Mon, 4 Apr 2016 22:40:30 -0700 Subject: [PATCH] EGD: Require at least one of telnet host/port OR web portal. Fixes #946. --- evennia/contrib/gamedir_client/README.md | 10 ++++++++-- evennia/contrib/gamedir_client/client.py | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/evennia/contrib/gamedir_client/README.md b/evennia/contrib/gamedir_client/README.md index e1bf09fe19..0217992c29 100644 --- a/evennia/contrib/gamedir_client/README.md +++ b/evennia/contrib/gamedir_client/README.md @@ -116,16 +116,22 @@ or backwards-incompatible change. ### telnet_hostname -Required: **Yes** +Required: **Must specify this and telnet_port OR web_client_url** The hostname that players can telnet into to play your game. ### telnet_port -Required: **Yes** +Required: **Must specify this and telnet_hostname OR web_client_url** The port that the players can telnet into to play your game. +### web_client_url + +Required: **Must specify this OR telnet_hostname + telnet_port** + +Full URL to your game's web-based client. + ## What information is being reported? In addition the the details listed in the previous section, we send some diff --git a/evennia/contrib/gamedir_client/client.py b/evennia/contrib/gamedir_client/client.py index d41c91984a..7cd8b5586d 100644 --- a/evennia/contrib/gamedir_client/client.py +++ b/evennia/contrib/gamedir_client/client.py @@ -76,6 +76,7 @@ class EvenniaGameDirClient(object): 'evennia_version': get_evennia_version(), 'telnet_hostname': gd_config['telnet_hostname'], 'telnet_port': gd_config['telnet_port'], + 'web_client_url': gd_config.get('web_client_url') or '', 'connected_player_count': SESSIONS.player_count(), 'total_player_count': PlayerDB.objects.num_total_players() or 0, }