From d7b3e99a27f232dc5f0c38dfc8712c11ae7b4c30 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 3 Sep 2014 00:58:20 +0100 Subject: [PATCH] WIP - Handle /room config commands --- src/command/commands.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/command/commands.c b/src/command/commands.c index 53e21c2f..541a3e3e 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1796,7 +1796,15 @@ cmd_room(gchar **args, struct cmd_help_t help) return TRUE; } - cons_show("You said %s.", args[1]); + if (g_strcmp0(args[1], "accept") == 0) { + // check that we're in room, we're owner and room requires configuration + + } else if (g_strcmp0(args[1], "cancel") == 0) { + // check that we're in room, we're owner and room requires configuration + + } else { + cons_show("Usage: %s", help.usage); + } return TRUE; }