degesch: update user command usages and comments

This commit is contained in:
Přemysl Eric Janouch 2015-06-18 22:46:51 +02:00
parent 8eb31ad2e1
commit 1c1cffa6eb
1 changed files with 6 additions and 8 deletions

View File

@ -6358,7 +6358,6 @@ handle_command_topic (struct app_context *ctx, char *arguments)
if (!server_command_check (ctx, "topic", true)) if (!server_command_check (ctx, "topic", true))
return true; return true;
// FIXME: currently the topic can't start with a channel name
struct server *s = ctx->current_buffer->server; struct server *s = ctx->current_buffer->server;
char *channel_name = try_get_channel (ctx, &arguments); char *channel_name = try_get_channel (ctx, &arguments);
if (!channel_name) if (!channel_name)
@ -6568,7 +6567,7 @@ handle_command_connect (struct app_context *ctx, char *arguments)
static bool static bool
handle_command_disconnect (struct app_context *ctx, char *arguments) 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; struct server *s = NULL;
if (ctx->current_buffer->type == BUFFER_GLOBAL) if (ctx->current_buffer->type == BUFFER_GLOBAL)
buffer_send_error (ctx, ctx->current_buffer, 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)) if (!server_command_check (ctx, "names", true))
return true; return true;
// TODO: use our list of channel_users instead if we know the channel
struct server *s = ctx->current_buffer->server; struct server *s = ctx->current_buffer->server;
char *channel_name = try_get_channel (ctx, &arguments); char *channel_name = try_get_channel (ctx, &arguments);
if (!channel_name) if (!channel_name)
@ -6826,19 +6824,19 @@ g_command_handlers[] =
handle_command_invite }, handle_command_invite },
{ "connect", "Connect to the server", { "connect", "Connect to the server",
"[server]", "[<server>]",
handle_command_connect }, handle_command_connect },
{ "disconnect", "Disconnect from the server", { "disconnect", "Disconnect from the server",
"[reason]", "[<reason>]",
handle_command_disconnect }, handle_command_disconnect },
{ "list", "List channels and their topic", { "list", "List channels and their topic",
"[<channel>[,<channel>...]] [<server>]", "[<channel>[,<channel>...]] [<target>]",
handle_command_list }, handle_command_list },
{ "names", "List users on channel", { "names", "List users on channel",
"[<channel>[,<channel>...]]", "[<channel>[,<channel>...]]",
handle_command_names }, handle_command_names },
{ "who", "List users", { "who", "List users",
"[<mask>]", "[<mask> [o]]",
handle_command_who }, handle_command_who },
{ "whois", "Get user information", { "whois", "Get user information",
"[<target>] <mask>", "[<target>] <mask>",
@ -6848,7 +6846,7 @@ g_command_handlers[] =
handle_command_whowas }, handle_command_whowas },
{ "motd", "Get the Message of The Day", { "motd", "Get the Message of The Day",
NULL, "[<target>]",
handle_command_motd }, handle_command_motd },
{ "stats", "Query server statistics", { "stats", "Query server statistics",
"[<query> [<target>]]", "[<query> [<target>]]",