Actually open the URL

This commit is contained in:
Michael Vetter
2020-05-16 23:41:12 +02:00
parent 083bf34a77
commit 03334664fb
3 changed files with 39 additions and 1 deletions

View File

@@ -2449,7 +2449,23 @@ static struct cmd_t command_defs[] =
CMD_EXAMPLES(
"/software valhalla.edda",
"/software xmpp.vanaheimr.edda")
}
},
{ "/urlopen",
parse_args, 1, -1, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_urlopen)
CMD_TAGS(
CMD_TAG_CHAT,
CMD_TAG_GROUPCHAT)
CMD_SYN(
"/urlopen <url>")
CMD_DESC(
"Open the URL")
CMD_ARGS(
{ "<url>", "URL to open."})
CMD_NOEXAMPLES
},
};
static GHashTable *search_index;