1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

DCC CTCP replies weren't handled properly

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1274 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-21 05:11:26 +00:00 committed by cras
parent 4718edf055
commit db4e159870

View File

@ -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); cmd = g_strconcat(reply ? "dcc reply " : "dcc ctcp ", msg+1, NULL);
if (cmd[strlen(cmd)-1] == 1) cmd[strlen(cmd)-1] = '\0'; 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 = ""; if (ptr != NULL) *ptr++ = '\0'; else ptr = "";
g_strdown(cmd+9); g_strdown(cmd+9);