echoto.c

lima-1.0b5/lib/cmds/wiz/echoto.c · 690 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

//:COMMAND
//$$ see: echo, echoall, echom
//USAGE: echoto <target> <message>
//
//Provides a simple targetted echo facility,
//
//>echoto fred This is a message from echoto.
//
//Fred sees:
//  This is a message from echoto.
//Nobody else in the room sees anything
//except you see:
//  You echo to Fred: This is a message from echoto.

inherit CMD;

void create()
{
  ::create();
  no_redirection();
}

private void main( string orig_input, mixed arg, mapping flags)
{
  string msg = orig_input[strsrch(orig_input," ")+1..];
  outf("You echo to %s: %s\n", arg[0]->query_name(), msg);
  tell(arg[0], msg + "\n");
}

Site Stats

Snippets: 1791
Codebases: 571