mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Implemented channel communication. You may now addcom/delcom and talk over channels. See @clist for master channel list, and comlist for your personal list. Still tons of work and cleanup to do, but it's in functional in its simplest form.
This commit is contained in:
parent
17bbc4c3b3
commit
107bd6d71a
7 changed files with 139 additions and 26 deletions
|
|
@ -89,6 +89,14 @@ def handle(cdat):
|
|||
parsed_input['root_chunk'] = ['pose', 'nospace']
|
||||
parsed_input['splitted'][1] = parsed_input['splitted'][1][1:]
|
||||
parsed_input['root_cmd'] = 'pose'
|
||||
# Channel alias match.
|
||||
elif session.has_user_channel(parsed_input['root_cmd'], alias_search=True, return_muted=False):
|
||||
cname = session.channels_subscribed.get(parsed_input['root_cmd'])[0]
|
||||
cmessage = ' '.join(parsed_input['splitted'][1:])
|
||||
second_arg = "%s=%s" % (cname, cmessage)
|
||||
parsed_input['splitted'] = ["@cemit/sendername", second_arg]
|
||||
parsed_input['root_chunk'] = ['@cemit', 'sendername', 'quiet']
|
||||
parsed_input['root_cmd'] = '@cemit'
|
||||
|
||||
# Get the command's function reference (Or False)
|
||||
cmd = cmdtable.return_cfunc(parsed_input['root_cmd'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue