diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-21 05:11:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-21 05:11:26 +0000 |
commit | db4e159870ab950ade8426db61a5af856b4326ac (patch) | |
tree | 15f788cb8637ae369fe8a05e40832c4328ca2f0b /src/irc | |
parent | 4718edf055c33ea1d52197ac9b0d7233dc7d77ca (diff) | |
download | irssi-db4e159870ab950ade8426db61a5af856b4326ac.zip |
DCC CTCP replies weren't handled properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1274 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index a43ac6fa..c2b05595 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -605,7 +605,7 @@ static void dcc_chat_msg(CHAT_DCC_REC *dcc, const char *msg) cmd = g_strconcat(reply ? "dcc reply " : "dcc ctcp ", msg+1, NULL); if (cmd[strlen(cmd)-1] == 1) cmd[strlen(cmd)-1] = '\0'; - ptr = strchr(cmd+9, ' '); + ptr = strchr(cmd+(reply ? 10 : 9), ' '); if (ptr != NULL) *ptr++ = '\0'; else ptr = ""; g_strdown(cmd+9); |