mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 00:56:22 +00:00
Added /form show
This commit is contained in:
@@ -1805,6 +1805,7 @@ cmd_form(gchar **args, struct cmd_help_t help)
|
||||
|
||||
if ((g_strcmp0(args[0], "submit") != 0) &&
|
||||
(g_strcmp0(args[0], "cancel") != 0) &&
|
||||
(g_strcmp0(args[0], "show") != 0) &&
|
||||
(g_strcmp0(args[0], "set") != 0) &&
|
||||
(g_strcmp0(args[0], "add") != 0) &&
|
||||
(g_strcmp0(args[0], "remove") != 0)) {
|
||||
@@ -1817,6 +1818,12 @@ cmd_form(gchar **args, struct cmd_help_t help)
|
||||
gchar **split_recipient = g_strsplit(recipient, " ", 2);
|
||||
char *room = split_recipient[0];
|
||||
|
||||
if (g_strcmp0(args[0], "show") == 0) {
|
||||
ui_show_form(current, room, current->form);
|
||||
g_strfreev(split_recipient);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (g_strcmp0(args[0], "submit") == 0) {
|
||||
iq_submit_room_config(room, current->form);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user