From 1c1cffa6ebb5fa544c59749d377c3c0189a442aa Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 18 Jun 2015 22:46:51 +0200
Subject: degesch: update user command usages and comments
---
degesch.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/degesch.c b/degesch.c
index e525e3d..ba0e952 100644
--- a/degesch.c
+++ b/degesch.c
@@ -6358,7 +6358,6 @@ handle_command_topic (struct app_context *ctx, char *arguments)
if (!server_command_check (ctx, "topic", true))
return true;
- // FIXME: currently the topic can't start with a channel name
struct server *s = ctx->current_buffer->server;
char *channel_name = try_get_channel (ctx, &arguments);
if (!channel_name)
@@ -6568,7 +6567,7 @@ handle_command_connect (struct app_context *ctx, char *arguments)
static bool
handle_command_disconnect (struct app_context *ctx, char *arguments)
{
- // TODO: try to take server name from arguments
+ // TODO: take server name from the first argument, if any
struct server *s = NULL;
if (ctx->current_buffer->type == BUFFER_GLOBAL)
buffer_send_error (ctx, ctx->current_buffer,
@@ -6611,7 +6610,6 @@ handle_command_names (struct app_context *ctx, char *arguments)
if (!server_command_check (ctx, "names", true))
return true;
- // TODO: use our list of channel_users instead if we know the channel
struct server *s = ctx->current_buffer->server;
char *channel_name = try_get_channel (ctx, &arguments);
if (!channel_name)
@@ -6826,19 +6824,19 @@ g_command_handlers[] =
handle_command_invite },
{ "connect", "Connect to the server",
- "[server]",
+ "[]",
handle_command_connect },
{ "disconnect", "Disconnect from the server",
- "[reason]",
+ "[]",
handle_command_disconnect },
{ "list", "List channels and their topic",
- "[[,...]] []",
+ "[[,...]] []",
handle_command_list },
{ "names", "List users on channel",
"[[,...]]",
handle_command_names },
{ "who", "List users",
- "[]",
+ "[ [o]]",
handle_command_who },
{ "whois", "Get user information",
"[] ",
@@ -6848,7 +6846,7 @@ g_command_handlers[] =
handle_command_whowas },
{ "motd", "Get the Message of The Day",
- NULL,
+ "[]",
handle_command_motd },
{ "stats", "Query server statistics",
"[ []]",
--
cgit v1.2.3-70-g09d2