mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 21:36:21 +00:00
Autogenerate room name with UUID for /join with no args
This commit is contained in:
@@ -321,20 +321,21 @@ static struct cmd_t command_defs[] =
|
||||
NULL } } },
|
||||
|
||||
{ "/join",
|
||||
cmd_join, parse_args, 1, 5, NULL,
|
||||
{ "/join room[@server] [nick value] [password value]", "Join a chat room.",
|
||||
{ "/join room[@server] [nick value] [password value]",
|
||||
"-------------------------------------------------",
|
||||
cmd_join, parse_args, 0, 5, NULL,
|
||||
{ "/join [room] [nick value] [password value]", "Join a chat room.",
|
||||
{ "/join [room] [nick value] [password value]",
|
||||
"-----------------------------------------",
|
||||
"Join a chat room at the conference server.",
|
||||
"",
|
||||
"room : Bare room JID, the chat server is determined by the 'muc.service' account property, 'conference.<domainpart>' by default.",
|
||||
"room@server : Full room JID.",
|
||||
"room : Bare room JID (the chat server is determined by the 'muc.service' account property) or full room jid."
|
||||
"nick value : Nickname to use in the room",
|
||||
"password value : Password if the room requires it.",
|
||||
"",
|
||||
"If no room is supplied, a generated name will be used with the format private-chat-[UUID].",
|
||||
"If no nickname is specified the account preference 'muc.nick' will be used which by default is the localpart of your JID.",
|
||||
"If the room doesn't exist, and the server allows it, a new one will be created.",
|
||||
"",
|
||||
"Example: /join",
|
||||
"Example: /join jdev@conference.jabber.org",
|
||||
"Example: /join jdev@conference.jabber.org nick mynick",
|
||||
"Example: /join private@conference.jabber.org nick mynick password mypassword",
|
||||
|
||||
Reference in New Issue
Block a user