Huge overhaul in the way objects and sessions are used with commands. We now pass all commands through objects (aside from unlogged commands), which means session.msg() is now deprecated for any use other than unlogged out.
As a side-effect of all of this, logging in more than once acts as behaves now. Also, this will allow things/rooms/exits (IE: not players) or un-logged in players to run commands or be forced to run them via @fo. All of this will bring us more in-line with MUX behavior.
This commit is contained in:
parent
50f4d04096
commit
9407eb0ee4
20 changed files with 680 additions and 712 deletions
14
src/alias_mgr.py
Normal file
14
src/alias_mgr.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"""
|
||||
Player command alias management stuff.
|
||||
"""
|
||||
from src.config.models import CommandAlias
|
||||
|
||||
CMD_ALIAS_LIST = {}
|
||||
def load_cmd_aliases():
|
||||
"""
|
||||
Load up our command aliases.
|
||||
"""
|
||||
alias_list = CommandAlias.objects.all()
|
||||
for alias in alias_list:
|
||||
CMD_ALIAS_LIST[alias.user_input] = alias.equiv_command
|
||||
print ' Command Aliases Loaded: %i' % (len(CMD_ALIAS_LIST),)
|
||||
Loading…
Add table
Add a link
Reference in a new issue