_codeblock.c

foundationI_fluffos_v1/lib/cmds/creator/_codeblock.c · 470 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

//      codeblock.c
//      created by Descartes of Borg 31 October 1992


#include <std.h>

inherit DAEMON;

#define CHANNELS "bin/daemon/channels"

int cmd_codeblock() {
    this_player()->set_blocked("all");
    if(this_player()->query_blocked("all")) write("Codeblock on.\n");
    else write("Codeblock off.\n");
    return 1;
}

void help() {
    write("Syntax: <codeblock>\n\n"+
        "Toggles between blocking and not blocking all remote communications.\n");
}

Site Stats

Snippets: 1791
Codebases: 571