xep-0092: make it possible to ask servers or components for software
This adds the new `/serversoftware` command. ``` /software user@domain.org/resource /serversoftware domain.org ``` Fix https://github.com/profanity-im/profanity/issues/1338
This commit is contained in:
@@ -2433,6 +2433,23 @@ static struct cmd_t command_defs[] =
|
||||
{ "on|off", "Enable or disable slashguard." })
|
||||
CMD_NOEXAMPLES
|
||||
},
|
||||
|
||||
{ "/serversoftware",
|
||||
parse_args, 1, 1, NULL,
|
||||
CMD_NOSUBFUNCS
|
||||
CMD_MAINFUNC(cmd_serversoftware)
|
||||
CMD_TAGS(
|
||||
CMD_TAG_DISCOVERY)
|
||||
CMD_SYN(
|
||||
"/serversoftware <domain>")
|
||||
CMD_DESC(
|
||||
"Find server or component software version information.")
|
||||
CMD_ARGS(
|
||||
{ "<domain>", "The jid of your server or component." })
|
||||
CMD_EXAMPLES(
|
||||
"/software valhalla.edda",
|
||||
"/software xmpp.vanaheimr.edda")
|
||||
}
|
||||
};
|
||||
|
||||
static GHashTable *search_index;
|
||||
|
||||
Reference in New Issue
Block a user