tellblock.c

dsI/lib/cmds/creators/tellblock.c · 511 B

From the archive dsI.zip

Download the archive   « Back to the archive contents

//      Tellblock
//      A wiz utility to block tells only by Gregon@Dead Souls
//      based on _codeblock.c by Descartes of Borg.
//      06Nov1993


#include <lib.h>

inherit LIB_DAEMON;

#define CHANNELS "bin/daemon/channels"

int cmd() {
    this_player()->SetBlocked("tell");
    if(this_player()->GetBlocked("tell")) write("Tellblock on.\n");
    else write("Tellblock off.\n");
    return 1;
}

void help() {
    write("Syntax: <tellblock>\n\n"+
        "Toggles the blocking of tells on and off.");
}

Site Stats

Snippets: 1791
Codebases: 571