This is for Nethack 3.4.0, which is an outdated version. Since 3.4.2, the functionality is already included in the official source without any patches. I strongly recommend using the newest version of the source instead of still patching the old 3.4.0. See http://www.nethack.org --- src/end.c.nostatcont Thu Jan 30 22:57:54 2003 +++ src/end.c Tue Feb 18 18:46:34 2003 @@ -1117,7 +1117,9 @@ int classcount; for (box = list; box; box = box->nobj) { +#ifndef STATCONT if (Is_container(box) && box->otyp != BAG_OF_TRICKS) { +#endif if (box->cobj) { winid tmpwin = create_nhwindow(NHW_MENU); Sprintf(buf, "Contents of %s:", the(xname(box))); @@ -1169,7 +1171,11 @@ container_contents(box->cobj, identified, TRUE); #endif } - } else { + } else +#ifdef STATCONT + if (Is_container(box)) +#endif + { pline("%s empty.", Tobjnam(box, "are")); display_nhwindow(WIN_MESSAGE, FALSE); #ifdef DUMP_LOG @@ -1177,7 +1183,9 @@ dump(The(xname(box)), " is empty."); #endif } - } +#ifndef STATCONT + } /* Is_container */ +#endif if (!all_containers) break; }