diff options
author | James Booth <boothj5@gmail.com> | 2014-09-03 00:58:20 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-03 00:58:20 +0100 |
commit | d7b3e99a27f232dc5f0c38dfc8712c11ae7b4c30 (patch) | |
tree | c3543922640ea2f639f6094b03bc87e2860a26d7 /src | |
parent | 52a9ab69099e67ffee5fd890b7f5117d749805cb (diff) | |
download | profani-tty-d7b3e99a27f232dc5f0c38dfc8712c11ae7b4c30.tar.gz |
WIP - Handle /room config commands
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 10 |
1 files changed, 9 insertions, 1 deletions
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; } |