mirror of
https://github.com/evennia/evennia.git
synced 2026-03-18 05:46:31 +01:00
Added gamesrc/utils.py as a convenient shorthand for often-used methods from the engine
Added a @deluser command and gave it and @boot an option to give a reason for booting/deleting a player Fixed a bug in @dig that confused exit directions in text Small bug fixes /Griatch
This commit is contained in:
parent
81bec61d7d
commit
df29defbcd
8 changed files with 239 additions and 28 deletions
|
|
@ -131,7 +131,8 @@ def plr_set_channel_listening(session, alias, listening):
|
|||
alias: (str) The channel alias.
|
||||
listening: (bool) A True or False value to determine listening status.
|
||||
"""
|
||||
membership = session.pobject.channel_membership_set.get(user_alias=alias)
|
||||
|
||||
membership = session.get_pobject().channel_membership_set.get(user_alias=alias)
|
||||
membership.is_listening = listening
|
||||
membership.save()
|
||||
plr_get_cdict(session).get(alias)[1] = listening
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue