diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-23 23:19:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-23 23:19:22 +0000 |
commit | c529fe0096eddd0e6e12157cf8486ad9117de900 (patch) | |
tree | 2f39a225641823277f9acea56a95a6081e2eec99 /src/irc/dcc | |
parent | 3e9164df1b9ad8433d3c46745b84c5df5f5207df (diff) | |
download | irssi-c529fe0096eddd0e6e12157cf8486ad9117de900.zip |
Added syntaxes of all commands in comments, they're going to be used to
autogenerate help files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@529 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 8 | ||||
-rw-r--r-- | src/irc/dcc/dcc-files.c | 4 | ||||
-rw-r--r-- | src/irc/dcc/dcc.c | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index ddac4c98..69299304 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -257,7 +257,7 @@ static void dcc_chat_connect(DCC_REC *dcc) } } -/* command: DCC CHAT */ +/* SYNTAX: DCC CHAT <nick> */ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server) { void *free_arg; @@ -306,7 +306,8 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server) cmd_params_free(free_arg); } -static void cmd_mircdcc(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item) +/* SYNTAX: MIRCDCC ON|OFF */ +static void cmd_mircdcc(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) { DCC_REC *dcc; @@ -315,7 +316,8 @@ static void cmd_mircdcc(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item) dcc = item_get_dcc(item); if (dcc == NULL) return; - dcc->mirc_ctcp = toupper(*data) == 'N' ? FALSE : TRUE; + dcc->mirc_ctcp = toupper(*data) != 'N' && + g_strncasecmp(data, "OF", 3) != 0; } /* DCC CHAT: text received */ diff --git a/src/irc/dcc/dcc-files.c b/src/irc/dcc/dcc-files.c index a214a4f8..c6695d40 100644 --- a/src/irc/dcc/dcc-files.c +++ b/src/irc/dcc/dcc-files.c @@ -210,6 +210,7 @@ static void dcc_get_connect(DCC_REC *dcc) #define dcc_is_unget(dcc) \ ((dcc)->type == DCC_TYPE_GET && (dcc)->handle == -1) +/* SYNTAX: DCC GET <nick> [<file>] */ static void cmd_dcc_get(const char *data) { DCC_REC *dcc; @@ -337,6 +338,7 @@ static void dcc_resume_rec(DCC_REC *dcc) g_free(str); } +/* SYNTAX: DCC RESUME <nick> [<file>] */ static void cmd_dcc_resume(const char *data) { DCC_REC *dcc; @@ -492,7 +494,7 @@ static void dcc_send_init(DCC_REC *dcc) } } -/* command: DCC SEND */ +/* SYNTAX: DCC SEND <nick> <file> */ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) { char *target, *fname, *str, *ptr; diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 62665ff7..b2aeddcf 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -411,7 +411,7 @@ static void dcc_reject(DCC_REC *dcc, IRC_SERVER_REC *server) dcc_destroy(dcc); } -/* command: DCC CLOSE */ +/* SYNTAX: DCC CLOSE <type> <nick> [<file>] */ static void cmd_dcc_close(char *data, IRC_SERVER_REC *server) { DCC_REC *dcc; |