From c9df89fade74815195a513afbdd2beb0d091ace2 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 31 Oct 2021 20:18:20 +0100 Subject: [PATCH] Add GMCP Client.GUI inputfunc to avoid issues with Mudlet --- evennia/server/inputfuncs.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/evennia/server/inputfuncs.py b/evennia/server/inputfuncs.py index 47c36f9816..7a57d97ecd 100644 --- a/evennia/server/inputfuncs.py +++ b/evennia/server/inputfuncs.py @@ -610,9 +610,18 @@ def msdp_send(session, *args, **kwargs): # client specific -def external_discord_hello(session, *args, **kwargs): +def _not_implemented(session, *args, **kwargs): """ - Sent by Mudlet as a greeting; added here to avoid - logging a missing inputfunc for it. + Dummy used to swallow missing-inputfunc errors for + common clients. """ pass + + +# GMCP External.Discord.Hello is sent by Mudlet as a greeting +# (see https://wiki.mudlet.org/w/Manual:Technical_Manual) +external_discord_hello = _not_implemented + + +# GMCP Client.Gui is sent by Mudlet for gui setup. +client_gui = _not_implemented