""" :Author: mgroman Usage: - Load this plugin - In a channel or query type "/cc foo something" to send the text "FOO SOMETHING" Released under GPL licence. """ __version__ = "0.1" __history__ = """ 0.1 initial """ short_syntax = """TEXT""" syntax_cc = """ Example: /cruisecontrol foo bar sends "FOO BAR" to the channel """ import weechat as wc wc.register("cruisecontrol", __version__, "", "string gimmicks") wc.add_command_handler("cruisecontrol", "cruisecontrol", "", short_syntax, syntax_cc) def cruisecontrol(server, args): wc.command("".join(args.swapcase())) return 0