--- xchat-2.0.3/src/common/dcc.c	Mon Jun 16 13:54:37 2003
+++ xchat-2.0.3.patched/src/common/dcc.c	Thu Jul 17 20:47:47 2003
@@ -626,6 +626,9 @@
 					dead = dcc_chat_line (dcc, dcc->dccchat->linebuf, tbuf);
 				}
 
+                if (!dcc || !dcc->dccchat)
+                    dead = TRUE;
+
 				if (dead) /* the dcc has been closed, don't use (DCC *)! */
 					return TRUE;
 

