chanremove.c

ds2.4.1/lib/secure/cmds/admins/chanremove.c · 678 B

From the archive ds2.4.1.zip

Download the archive   « Back to the archive contents

// This command is only useful if you own an intermud channel

#include <lib.h>
#include <daemons.h>

inherit LIB_DAEMON;

mixed cmd(string chan) {

    if(!archp(previous_object())) return 0;
    if( !chan || chan == "") {
	return "Huh?";
    }
    if(member_array(chan,INTERMUD_D->GetChannels()) == -1) 
	return "No such channel.";

    else INTERMUD_D->eventWrite( ({ "channel-remove", 5, mud_name(), 
	    this_player()->GetKeyName(), INTERMUD_D->GetNameserver(), 
	    0, chan }) );

    //unguarded( (: update("/daemon/intermud") :) );
    load_object("/secure/cmds/creators/update")->cmd("/daemon/intermud");

    write("Channel removal request sent.");

    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571