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/dcc-chat.c | |
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/dcc-chat.c')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 8 |
1 files changed, 5 insertions, 3 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 */ |