summaryrefslogtreecommitdiff
path: root/src/event_main.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-06-04 20:43:10 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-06-04 20:43:10 +0200
commit7f1b66cdf7f1af6149db016a11214bccf46e98ef (patch)
treef386383b7a9d09de6ae3a6b5804da3b7ece38afb /src/event_main.cc
parent2cba1d5be56c4768ac1a7dfb422c9f7c4c6611b9 (diff)
Fix help command and use correct name for channel
Diffstat (limited to 'src/event_main.cc')
-rw-r--r--src/event_main.cc5
1 files changed, 2 insertions, 3 deletions
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<std::string>& 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<std::string> args;