echoto.c
gurba-0.40/lib/cmds/wiz/echoto.c · 442 B
From the archive gurba.tgz
Download the archive « Back to the archive contents
void main( string who ) {
object *usr;
int i;
int flag;
string msg;
sscanf( who, "%s %s", who, msg );
usr = users();
flag = 0;
for( i = 0; i < sizeof( usr ); i++) {
if( usr[i]->query_name() == who ) {
usr[i]->query_player()->message( "\n" + msg + "\n");
write( "You echo to " + who + ": '" + msg + "'\n");
flag = 1;
}
}
if (flag == 0) {
write( "You can't find " + who + ".\n" );
}
}