Send room destroy iq on /room config cancel

This commit is contained in:
James Booth
2014-09-03 20:29:17 +01:00
parent 09c10f62f2
commit aa9f1dfa06
5 changed files with 44 additions and 0 deletions

View File

@@ -1803,6 +1803,8 @@ cmd_room(gchar **args, struct cmd_help_t help)
} else if (g_strcmp0(args[1], "cancel") == 0) {
// check that we're in room, we're owner and room requires configuration
char *room = ui_current_recipient();
iq_destroy_instant_room(room);
} else {
cons_show("Usage: %s", help.usage);