autodocrm.c

skylib_fluffos_v3/mudlib/secure/cmds/creator/autodocrm.c · 518 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

inherit COMMAND_BASE;

/** @ignore yes */
int cmd( string str ) {
    string *files;

    if( !sizeof( files = TP->get_files(str) ) )
        files = ({ str });

    foreach( str in files ) {
        if( AUTODOC_H->remove_file(str) ) {
            write("Removed file "+str+".\n");
            continue;
        }
        write("Unable to remove file "+str+".\n");
    }

    return 1;

} /* cmd() */

/** @ignore yes */
mixed query_patterns() {
    return ({"<string>", (: cmd($4[0]) :) });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571