示例#1
0
文件: fish.py 项目: buzzworkers/tl
def init():
  """ Init """
  if not got: raise RequireError("PyCrypto is required for FiSH. Please install this library if you want to use this plug")
  if cfg.enable:
    inputmorphs.add(fishin)
    outputmorphs.add(fishout)
    callbacks.add("NOTICE", dh1080_exchange)
    cmnds.add("fish", handle_fish, "OPER")
    examples.add("fish", "command that handles fish enrypting over IRC", "fish help")
  else: logging.warn("fish plugin is not enabled - use fish-cfg enable 1")
示例#2
0
文件: colors.py 项目: buzzworkers/tl
def init():
    """ init the colors plugin, add the colormorph. """
    outputmorphs.add(docolormorph)