diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-18 22:46:51 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-18 22:47:56 +0200 |
commit | 1c1cffa6ebb5fa544c59749d377c3c0189a442aa (patch) | |
tree | 4ce9b8c6100ed2680444049e3b7dec98333bb010 | |
parent | 8eb31ad2e11038a17f66c84f48befda6b3b807d2 (diff) | |
download | xK-1c1cffa6ebb5fa544c59749d377c3c0189a442aa.tar.gz xK-1c1cffa6ebb5fa544c59749d377c3c0189a442aa.tar.xz xK-1c1cffa6ebb5fa544c59749d377c3c0189a442aa.zip |
degesch: update user command usages and comments
-rw-r--r-- | degesch.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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]", + "[<server>]", handle_command_connect }, { "disconnect", "Disconnect from the server", - "[reason]", + "[<reason>]", handle_command_disconnect }, { "list", "List channels and their topic", - "[<channel>[,<channel>...]] [<server>]", + "[<channel>[,<channel>...]] [<target>]", handle_command_list }, { "names", "List users on channel", "[<channel>[,<channel>...]]", handle_command_names }, { "who", "List users", - "[<mask>]", + "[<mask> [o]]", handle_command_who }, { "whois", "Get user information", "[<target>] <mask>", @@ -6848,7 +6846,7 @@ g_command_handlers[] = handle_command_whowas }, { "motd", "Get the Message of The Day", - NULL, + "[<target>]", handle_command_motd }, { "stats", "Query server statistics", "[<query> [<target>]]", |