Ejemplo n.º 1
0
def unswexclude_cmd(ses, args, input):
  """
  Allows you to remove swexcludes.

  category: commands
  """
  func = exported.get_manager("speedwalk").removeExcludes
  modutils.unsomething_helper(args, func, ses, "swexclude", "swexcludes")
Ejemplo n.º 2
0
def unvariable_cmd(ses, args, input):
  """
  Allows you to remove variables.

  category: commands
  """
  func = exported.get_manager("variable").removeVariables
  modutils.unsomething_helper(args, func, ses, "variable", "variables")
Ejemplo n.º 3
0
def unalias_cmd(ses, args, input):
  """
  Allows you to remove aliases.

  category: commands
  """
  func = exported.get_manager("alias").getAliasData(ses).removeAliases
  modutils.unsomething_helper(args, func, None, "alias", "aliases")
Ejemplo n.º 4
0
def unsubstitute_cmd(ses, args, input):
    """
  Allows you to remove substitutes.

  category: commands
  """
    func = exported.get_manager("substitute").removeSubstitutes
    modutils.unsomething_helper(args, func, ses, "substitute", "substitutes")
Ejemplo n.º 5
0
def unswexclude_cmd(ses, args, input):
    """
  Allows you to remove swexcludes.

  category: commands
  """
    func = exported.get_manager("speedwalk").removeExcludes
    modutils.unsomething_helper(args, func, ses, "swexclude", "swexcludes")
Ejemplo n.º 6
0
def unalias_cmd(ses, args, input):
  """
  Allows you to remove aliases.

  category: commands
  """
  func = exported.get_manager("alias").getAliasData(ses).removeAliases
  modutils.unsomething_helper(args, func, None, "alias", "aliases")
Ejemplo n.º 7
0
def unvariable_cmd(ses, args, input):
    """
  Allows you to remove variables.

  category: commands
  """
    func = exported.get_manager("variable").removeVariables
    modutils.unsomething_helper(args, func, ses, "variable", "variables")
Ejemplo n.º 8
0
def unantisubstitute_cmd(ses, args, input):
  """
  Allows you to remove antisubstitutes.

  category: commands
  """
  func = exported.get_manager("substitute").removeAntiSubstitutes
  modutils.unsomething_helper(args, func, ses, "antisubstitute", "antisubstitutes")
Ejemplo n.º 9
0
def unhighlight_cmd(ses, args, input):
  """
  Allows you to remove highlights.

  examples:
    #highlight {hello}
    #highlight {blah*}

  category: commands
  """
  func = exported.get_manager("highlight").removeHighlights
  modutils.unsomething_helper(args, func, ses, "highlight", "highlights")
Ejemplo n.º 10
0
def ungag_cmd(ses, args, input):
    """
  Allows you to remove gags.

  category: commands
  """
    str = args["str"]
    quiet = args["quiet"]

    gm = exported.get_manager("gag")
    gd = gm.getGagData(ses)

    func = gd.removeGags
    modutils.unsomething_helper(args, func, None, "gag", "gags")
Ejemplo n.º 11
0
def ungag_cmd(ses, args, input):
  """
  Allows you to remove gags.

  category: commands
  """
  str = args["str"]
  quiet = args["quiet"]

  gm = exported.get_manager("gag")
  gd = gm.getGagData(ses)

  func = gd.removeGags
  modutils.unsomething_helper(args, func, None, "gag", "gags")
Ejemplo n.º 12
0
def unaction_cmd(ses, args, input):
    """
  Removes action(s) from the manager.

  examples:
    #unaction {missed you.}
    #unaction missed*
    #unaction tag={indoor}
    
  see also: action, enable, disable, atags

  category: commands
  """
    am = exported.get_manager("action")
    ad = am.getActionData(ses)
    func = lambda x: ad.removeActions(x, args["tag"])
    modutils.unsomething_helper(args, func, None, "action", "actions")
Ejemplo n.º 13
0
def unaction_cmd(ses, args, input):
  """
  Removes action(s) from the manager.

  examples:
    #unaction {missed you.}
    #unaction missed*
    #unaction tag={indoor}
    
  see also: action, enable, disable, atags

  category: commands
  """
  am = exported.get_manager("action")
  ad = am.getActionData(ses)
  func = lambda x: ad.removeActions(x, args["tag"])
  modutils.unsomething_helper(args, func, None, "action", "actions")