mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Change GMCP Default. to use Core. instead.
This commit is contained in:
parent
1ed115e2d1
commit
022ef7eefc
1 changed files with 5 additions and 3 deletions
|
|
@ -227,13 +227,15 @@ class TelnetOOB(object):
|
|||
GMCP messages will be outgoing on the following
|
||||
form (the non-JSON cmdname at the start is what
|
||||
IRE games use, supposedly, and what clients appear
|
||||
to have adopted):
|
||||
to have adopted). A cmdname without Package will end
|
||||
up in the Core package, while Core package names will
|
||||
be stripped on the Evennia side.
|
||||
|
||||
[cmd.name, [], {}] -> Cmd.Name
|
||||
[cmd.name, [arg], {}] -> Cmd.Name arg
|
||||
[cmd.name, [args],{}] -> Cmd.Name [args]
|
||||
[cmd.name, [], {kwargs}] -> Cmd.Name {kwargs}
|
||||
[cmdname, [args, {kwargs}] -> Custom.Cmdname [[args],{kwargs}]
|
||||
[cmdname, [args, {kwargs}] -> Core.Cmdname [[args],{kwargs}]
|
||||
|
||||
Notes:
|
||||
There are also a few default mappings between evennia outputcmds and
|
||||
|
|
@ -251,7 +253,7 @@ class TelnetOOB(object):
|
|||
elif "_" in cmdname:
|
||||
gmcp_cmdname = ".".join(word.capitalize() for word in cmdname.split("_"))
|
||||
else:
|
||||
gmcp_cmdname = "Custom.%s" % cmdname.capitalize()
|
||||
gmcp_cmdname = "Core.%s" % cmdname.capitalize()
|
||||
|
||||
if not (args or kwargs):
|
||||
gmcp_string = gmcp_cmdname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue