--- xchat-2.0.5/src/common/outbound.c 2003-09-05 12:12:52.000000000 +0100 +++ xchat-dsd/src/common/outbound.c 2003-11-03 21:42:05.102742912 +0000 @@ -1732,7 +1732,7 @@ static int cmd_join (struct session *sess, char *tbuf, char *word[], char *word_eol[]) { - char *chan = word[2]; + char *chan = word_eol[2]; if (*chan) { char *po, *pass = word[3];