Updated Python plugin for API changes

This commit is contained in:
James Booth
2016-02-23 21:24:50 +00:00
parent 9e7f472b23
commit 0557eff53b
8 changed files with 99 additions and 132 deletions

View File

@@ -57,12 +57,19 @@ def _open_browser(url):
def prof_init(version, status):
prof.register_command("/browser", 0, 1,
"/browser [url]",
"View a URL in the browser.",
"View a URL in the browser, if no argument is supplied, " +
"the last received URL will be used.",
_cmd_browser)
synopsis = [
"/browser",
"/browser <url>"
]
description = "View a URL in the systems default browser. If no argument is supplied, the last URL in the current chat or room will be used."
args = [
[ "<url>", "URL to open in the browser" ]
]
examples = [
"/browser http://www.profanity.im"
]
prof.register_command("/browser", 0, 1, synopsis, description, args, examples, _cmd_browser)
def prof_post_chat_message_display(jid, message):