Finished up addcom/delcom. Added comlist. Fixed @list commands (still needs to sort by command name eventually).

This commit is contained in:
Greg Taylor 2007-05-15 17:28:23 +00:00
parent e1f4c2e0da
commit c7452e5a88
7 changed files with 115 additions and 54 deletions

View file

@ -12,6 +12,7 @@ import functions_general
import session_mgr
import gameconf
import settings
import cmdtable
import initial_setup
class Server(dispatcher):
@ -92,6 +93,12 @@ class Server(dispatcher):
self.game_running = False
def command_list(self):
"""
Return a string representing the server's command list.
"""
return cmdtable.ctable.keys()
def reload(self, session):
"""
Reload modules that don't have any variables that can be reset.