diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-03 02:20:38 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-03 02:20:38 +0000 |
commit | 0577583fca28bd70c459517ed1c9c94728135eca (patch) | |
tree | 4f22490896b8ba92c96109d0dadc424ed3640ea7 /src/fe-common/irc/dcc | |
parent | 4c82e70fb54415b0627397eac4a8406afde0e1d9 (diff) | |
download | irssi-0577583fca28bd70c459517ed1c9c94728135eca.zip |
Theme updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@931 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc')
-rw-r--r-- | src/fe-common/irc/dcc/fe-dcc.c | 3 | ||||
-rw-r--r-- | src/fe-common/irc/dcc/module-formats.c | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c index 8f685514..e86a317a 100644 --- a/src/fe-common/irc/dcc/fe-dcc.c +++ b/src/fe-common/irc/dcc/fe-dcc.c @@ -310,7 +310,8 @@ static void cmd_msg(const char *data) if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &target, &text)) return; - dcc = dcc_find_item(DCC_TYPE_CHAT, target+1, NULL); + target++; + dcc = dcc_find_item(DCC_TYPE_CHAT, target, NULL); if (dcc == NULL || dcc->sendbuf == NULL) { printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, IRCTXT_DCC_CHAT_NOT_FOUND, target+1); diff --git a/src/fe-common/irc/dcc/module-formats.c b/src/fe-common/irc/dcc/module-formats.c index 3994e9d3..57e6a26f 100644 --- a/src/fe-common/irc/dcc/module-formats.c +++ b/src/fe-common/irc/dcc/module-formats.c @@ -27,13 +27,13 @@ FORMAT_REC fecommon_irc_dcc_formats[] = { /* ---- */ { NULL, "DCC", 0 }, - { "own_dcc", "{dccownmsg dcc{dccownnick $1}}$2", 3, { 0, 0, 0 } }, + { "own_dcc", "{dccownmsg dcc {dccownnick $1}}$2", 3, { 0, 0, 0 } }, { "own_dcc_action", "{dccownaction $0}$1", 2, { 0, 0 } }, - { "own_dcc_ctcp", "{ownctcp ctcp{ownctcp_target $0}}$1 $2", 3, { 0, 0, 0 } }, - { "dcc_msg", "{dccmsg $0{dccmsghost dcc}}$1", 2, { 0, 0 } }, + { "own_dcc_ctcp", "{ownctcp ctcp $0}$1 $2", 3, { 0, 0, 0 } }, + { "dcc_msg", "{dccmsg dcc $0}$1", 2, { 0, 0 } }, { "action_dcc", "{dccaction $0}$1", 2, { 0, 0 } }, - { "own_dcc_query", "{msgnick {msgownnick $0}}$2", 3, { 0, 0, 0 } }, - { "dcc_msg_query", "{msgnick {dccquerynick $0}}$1", 2, { 0, 0 } }, + { "own_dcc_query", "{ownmsgnick {msgownnick $0}}$2", 3, { 0, 0, 0 } }, + { "dcc_msg_query", "{privmsgnick $0}$1", 2, { 0, 0 } }, { "dcc_ctcp", "{dcc >>> DCC CTCP received from {hilight $0}: $1}", 2, { 0, 0 } }, { "dcc_chat", "{dcc DCC CHAT from {nick $0} [$1 port $2]}", 3, { 0, 0, 1 } }, { "dcc_chat_not_found", "{dcc No DCC CHAT connection open to {nick $0}}", 1, { 0 } }, |