Imported from archive.
[mudpy.git] / lib / muff / muffvars.py
1 """Global variable objects for the MUFF Engine"""
2
3 # Copyright (c) 2005 mudpy, Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
4 # Licensed per terms in the LICENSE file distributed with this software.
5
6 # hack to load all modules in the muff package
7 import muff
8 for module in muff.__all__:
9         exec("import " + module)
10
11 # if there is no userlist, create an empty one
12 try:
13         if userlist: pass
14 except NameError:
15         userlist = []
16
17 # if there is no listening socket, create an empty one
18 try:
19         if newsocket: pass
20 except NameError:
21         newsocket = None
22
23 # flag to raise when the world should be shut down
24 terminate_world = False
25
26 # flag to raise when all code modules, config and data should be reloaded
27 reload_modules = False
28