示例#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)
示例#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)
示例#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)
示例#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)
示例#5
0
文件: gag.py 项目: v-legoff/accertin
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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#14
0
文件: action.py 项目: avidal/lyntin
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)
示例#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)
示例#16
0
def load():
    modutils.load_commands(commands_dict)
    exported.add_help("root.commands.ifvar", ifvar_help)
    exported.remove_help("root.ifvar")
示例#17
0
def load():
    modutils.load_commands(commands_dict)
    exported.hook_register('mud_filter_hook',mud_filter)
示例#18
0
def load():
    modutils.load_commands(commands_dir)
示例#19
0
def load():
  """ Initializes the module by binding all the commands."""
  modutils.load_commands(commands_dict)
示例#20
0
def load():
    """ Initializes the module by binding all the commands."""
    modutils.load_commands(commands_dict)
示例#21
0
def load():
    modutils.load_commands(command_dict)
示例#22
0
def load():
    """ Initializes the module by binding all the commands."""
    exported.hook_register("mud_filter_hook", mudfilter)
    modutils.load_commands(commands_dict)
示例#23
0
def load():
    """ Initializes the module by binding all the commands."""
    sound_lib.output.Output()
    modutils.load_commands(commands_dict)
示例#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")
示例#25
0
def load():
  global myscheduler

  myscheduler = Scheduler()
  myscheduler.startup()
  modutils.load_commands(commands_dict)
示例#26
0
文件: deed.py 项目: OSadovy/lyntin
def load():
  """ Initializes the module by binding all the commands."""
  global dm
  modutils.load_commands(commands_dict)
  dm = DeedManager()
  exported.add_manager("deed", dm)
示例#27
0
def load():
    exported.hook_register("timer_hook", timerget)
    exported.hook_register("mud_filter_hook", look_fortarget)
    modutils.load_commands(command_dic)
示例#28
0
def load():
    global myscheduler

    myscheduler = Scheduler()
    myscheduler.startup()
    modutils.load_commands(commands_dict)
示例#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)
示例#30
0
def load():
	modutils.load_commands(commands_dict)
	exported.add_help("root.commands.ifvar", ifvar_help)
	exported.remove_help("root.ifvar")