showemote.c

gurba-0.40/lib/cmds/wiz/showemote.c · 338 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

void main( string str ) {
  string *rules;
  int i;

  if( EMOTE_D->is_emote( str ) ) {

    rules = EMOTE_D->query_rules( str );

    while( sizeof( rules ) > 0 ) {
      write( rules[0] + " : \"" + EMOTE_D->query_emote( str, rules[0] ) + "\"\n" );
      rules -= ({ rules[0] });
    }
  } else {
    write( "No such emote. \n" );
  }
}

Site Stats

Snippets: 1791
Codebases: 571