From 7f1b66cdf7f1af6149db016a11214bccf46e98ef Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 4 Jun 2015 20:43:10 +0200 Subject: Fix help command and use correct name for channel --- src/event_main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/event_main.cc b/src/event_main.cc index 2a43086..200b035 100644 --- a/src/event_main.cc +++ b/src/event_main.cc @@ -484,7 +484,6 @@ bool help(std::vector& args) { if (args.empty()) { ss << "Usage: help COMMAND" << std::endl; ss << "Known commands: create, update, cancel, show, going, !going"; - return true; } else if (args.front() == "create") { ss << "Usage: create NAME START [TEXT]" << std::endl; ss << "Create a new event with the name NAME starting at START with" @@ -536,9 +535,9 @@ bool handle_request(CGI* cgi) { Http::response(500, "Bad token"); return true; } - const auto& channel = data["channel"]; + const auto& channel = data["channel_name"]; if (channel.empty()) { - Http::response(500, "No channel"); + Http::response(500, "No channel");; return true; } std::vector args; -- cgit v1.2.3-70-g09d2