emote.c

gurba-0.40/lib/cmds/player/emote.c · 546 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

/* void main( string str ) { */
  
/*   string spc; */
/*   spc = " "; */

/*   this_player()->simple_action( "-> $N " + str + "\n" ); */
/* } */

void main( string str ) {
  if (str != "") {
    if (SECURE_D->query_wiz(this_player()->query_name()) > 0 || this_player()->is_player() == 0 ) {
      this_player()->query_environment()->tell_room( 0, capitalize(this_player()->query_name()) + " " + str) ;
    } else {
      this_player()->query_environment()->tell_room( 0, "-> " + capitalize(this_player()->query_name()) + " " + str);
    }
  }
}

Site Stats

Snippets: 1791
Codebases: 571