/* more command, trial out by Turrican for a commands daemon. */
#include <creator.h>
inherit COMMAND_BASE;
mixed cmd(string str) {
object *things;
seteuid(geteuid(this_player()));
if(!str) {
notify_fail("More which file(s)/object?\n");
return 0;
}
if(sizeof(things = WIZ_PRESENT->wiz_present(str, this_player()))) {
str = file_name(things[0]);
sscanf(str, "%s#%*d", str);
if (file_size(str) <= 0)
str += ".c";
}
return this_player()->more_file(str);
}