diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-03-18 20:32:12 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 11:05:58 +0100 |
commit | fde0a0d1c65ff61eb3d5bb9c07d6974d4fdac1f6 (patch) | |
tree | 5665fcc576e40222f0ed1e3e9bb1d2ba55b31b89 /src/command/cmd_funcs.c | |
parent | 064174efa3604404fd1b8a5c34cf69ed93ab12dc (diff) | |
download | profani-tty-fde0a0d1c65ff61eb3d5bb9c07d6974d4fdac1f6.tar.gz |
Add support to register with a room
`/affiliation register` can now be used to register a nickname with a MUC. Tested with a server without forms. Couldn't find a server which supports forms yet. Implements https://github.com/profanity-im/profanity/issues/1210
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 657850e2..07a444f7 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -4166,6 +4166,11 @@ cmd_affiliation(ProfWin* window, const char* const command, gchar** args) return TRUE; } + if (g_strcmp0(cmd, "register") == 0) { + iq_muc_register_nick(mucwin->roomjid); + return TRUE; + } + cons_bad_cmd_usage(command); return TRUE; } |