Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)
Example #6
0
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)
Example #7
0
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)
Example #8
0
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)
Example #9
0
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)
Example #10
0
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)
Example #11
0
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)
Example #12
0
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)
Example #13
0
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)
Example #14
0
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)
Example #15
0
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)
Example #16
0
def load():
    modutils.load_commands(commands_dict)
    exported.add_help("root.commands.ifvar", ifvar_help)
    exported.remove_help("root.ifvar")
Example #17
0
def load():
    modutils.load_commands(commands_dict)
    exported.hook_register('mud_filter_hook',mud_filter)
Example #18
0
def load():
    modutils.load_commands(commands_dir)
Example #19
0
def load():
  """ Initializes the module by binding all the commands."""
  modutils.load_commands(commands_dict)
Example #20
0
def load():
    """ Initializes the module by binding all the commands."""
    modutils.load_commands(commands_dict)
Example #21
0
def load():
    modutils.load_commands(command_dict)
Example #22
0
def load():
    """ Initializes the module by binding all the commands."""
    exported.hook_register("mud_filter_hook", mudfilter)
    modutils.load_commands(commands_dict)
Example #23
0
def load():
    """ Initializes the module by binding all the commands."""
    sound_lib.output.Output()
    modutils.load_commands(commands_dict)
Example #24
0
def load():
	exported.hook_register("from_mud_hook", handle_from_mud)
	modutils.load_commands(commands_dict)
	exported.add_help("root.commands.commo", commo_help)
	exported.remove_help("root.commo")
Example #25
0
def load():
  global myscheduler

  myscheduler = Scheduler()
  myscheduler.startup()
  modutils.load_commands(commands_dict)
Example #26
0
def load():
  """ Initializes the module by binding all the commands."""
  global dm
  modutils.load_commands(commands_dict)
  dm = DeedManager()
  exported.add_manager("deed", dm)
Example #27
0
def load():
    exported.hook_register("timer_hook", timerget)
    exported.hook_register("mud_filter_hook", look_fortarget)
    modutils.load_commands(command_dic)
Example #28
0
def load():
    global myscheduler

    myscheduler = Scheduler()
    myscheduler.startup()
    modutils.load_commands(commands_dict)
Example #29
0
def load():
    """ Initializes the module by binding all the commands."""
    global dm
    modutils.load_commands(commands_dict)
    dm = DeedManager()
    exported.add_manager("deed", dm)
Example #30
0
def load():
	modutils.load_commands(commands_dict)
	exported.add_help("root.commands.ifvar", ifvar_help)
	exported.remove_help("root.ifvar")