weechat.hook_command("aformat", "Alternate way of text formatting, useful for relays without text formatting features (Glowingbear, WeechatAndroid, etc)",
"text <*/_|> text <*/_|> more text",
" *: bold text\n"
" /: italic text\n"
" _: underlined text\n"
" |: reversed (black on white) text\n\n"
" eg.: typing: /aformat This /must/ be the *work* of an _enemy_ |stand|\n"
" will output: This {0}must{4} be the {1}work{4} of an {2}enemy{4} {3}stand{4}".format(weechat.color("italic"), weechat.color("bold"), weechat.color("underline"), weechat.color("reverse"), weechat.color("reset")),