def load(): """ Initializes the module by binding all the commands.""" global am modutils.load_commands(commands_dict) am = AliasManager() exported.add_manager("alias", am) exported.hook_register("user_filter_hook", am.userfilter, 20) exported.hook_register("write_hook", am.persist)
def load(): """ Initializes the module by binding all the commands.""" global hm modutils.load_commands(commands_dict) hm = HighlightManager(exported.myengine.getConfigManager()) exported.add_manager("highlight", hm) exported.hook_register("mud_filter_hook", hm.mudfilter, 90) exported.hook_register("write_hook", hm.persist)
def load(): """ Initializes the module by binding all the commands.""" global gm modutils.load_commands(commands_dict) gm = GagManager() exported.add_manager("gag", gm) exported.hook_register("mud_filter_hook", gm.mudfilter, 50) exported.hook_register("write_hook", gm.persist)
def load(): """ Initializes the module by binding all the commands.""" global lm modutils.load_commands(commands_dict) lm = LoggerManager() exported.add_manager("logger", lm) exported.hook_register("to_mud_hook", lm.tomudfilter, constants.LAST+1) exported.hook_register("mud_filter_hook", lm.mudfilter, 30) exported.hook_register("prompt_hook", lm.promptfilter, 30)
def load(): """ Initializes the module by binding all the commands.""" global vm modutils.load_commands(commands_dict) vm = VariableManager() exported.add_manager("variable", vm) exported.hook_register("user_filter_hook", vm.userfilter, 10) exported.hook_register("user_filter_hook", vm.denestVars, 95) exported.hook_register("default_resolver_hook", vm.defaultResolver) exported.hook_register("write_hook", vm.persist)
def load(): """ Initializes the module by binding all the commands.""" global smm modutils.load_commands(commands_dict) smm = sowmud.SowmudManager() exported.add_manager("sowmud", smm) mapper.load() exported.hook_register("mud_filter_hook", smm.mudfilter, 76) exported.hook_register("user_filter_hook", smm.userfilter, 21) exported.hook_register("disconnect_hook", smm.reconnect, 50)
def load(): """ Initializes the module by binding all the commands.""" global sm modutils.load_commands(commands_dict) sm = SpeedwalkManager() exported.add_manager("speedwalk", sm) exported.hook_register("user_filter_hook", sm.userfilter, 80) exported.hook_register("write_hook", sm.persist) from lyntin import config for mem in exported.get_active_sessions(): tc = config.BoolConfig("speedwalk", 1, 1, "Allows you to turn on and turn off speedwalk handling.") exported.add_config("speedwalk", tc, mem)
def load(): """ Initializes the module by binding all the commands.""" global sm modutils.load_commands(commands_dict) sm = SubstituteManager() exported.add_manager("substitute", sm) exported.hook_register("mud_filter_hook", sm.mudfilter, 50) exported.hook_register("write_hook", sm.persist) from lyntin import config for mem in exported.get_active_sessions(): tc = config.BoolConfig("ignoresubs", 0, 1, "Allows you to turn on and turn off substitutions.") exported.add_config("ignoresubs", tc, mem)
def load(): """ Initializes the module by binding all the commands.""" global am, var_module modutils.load_commands(commands_dict) am = ActionManager() exported.add_manager("action", am) exported.hook_register("mud_filter_hook", am.mudfilter, 75) exported.hook_register("write_hook", am.persist) exported.hook_register("variable_change_hook", am.variableChange) from lyntin import config for mem in exported.get_active_sessions(): # we need a separate BoolConfig for each session tc = config.BoolConfig("ignoreactions", 0, 1, "Allows you to turn off action handling.") exported.add_config("ignoreactions", tc, mem)
def load(): """ Initializes the module by binding all the commands.""" global dm modutils.load_commands(commands_dict) dm = DeedManager() exported.add_manager("deed", dm)