Change GMCP Default. to use Core. instead.
This commit is contained in:
parent
e23cfb5d67
commit
4b5ae26125
1 changed files with 5 additions and 3 deletions
|
|
@ -227,13 +227,15 @@ class TelnetOOB(object):
|
||||||
GMCP messages will be outgoing on the following
|
GMCP messages will be outgoing on the following
|
||||||
form (the non-JSON cmdname at the start is what
|
form (the non-JSON cmdname at the start is what
|
||||||
IRE games use, supposedly, and what clients appear
|
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, [], {}] -> Cmd.Name
|
||||||
[cmd.name, [arg], {}] -> Cmd.Name arg
|
[cmd.name, [arg], {}] -> Cmd.Name arg
|
||||||
[cmd.name, [args],{}] -> Cmd.Name [args]
|
[cmd.name, [args],{}] -> Cmd.Name [args]
|
||||||
[cmd.name, [], {kwargs}] -> Cmd.Name {kwargs}
|
[cmd.name, [], {kwargs}] -> Cmd.Name {kwargs}
|
||||||
[cmdname, [args, {kwargs}] -> Custom.Cmdname [[args],{kwargs}]
|
[cmdname, [args, {kwargs}] -> Core.Cmdname [[args],{kwargs}]
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
There are also a few default mappings between evennia outputcmds and
|
There are also a few default mappings between evennia outputcmds and
|
||||||
|
|
@ -251,7 +253,7 @@ class TelnetOOB(object):
|
||||||
elif "_" in cmdname:
|
elif "_" in cmdname:
|
||||||
gmcp_cmdname = ".".join(word.capitalize() for word in cmdname.split("_"))
|
gmcp_cmdname = ".".join(word.capitalize() for word in cmdname.split("_"))
|
||||||
else:
|
else:
|
||||||
gmcp_cmdname = "Custom.%s" % cmdname.capitalize()
|
gmcp_cmdname = "Core.%s" % cmdname.capitalize()
|
||||||
|
|
||||||
if not (args or kwargs):
|
if not (args or kwargs):
|
||||||
gmcp_string = gmcp_cmdname
|
gmcp_string = gmcp_cmdname
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue