Re: Politics

From: George (
Date: 02/11/97

On Mon, 1 Jan 1990, Raf wrote:

>Well, theres this little command called LOG in Envy 2, which does 
>exactly what you want (I think). Maybe you could port it or 
>Good luck,

Think this will do it...logs the buffer of what they've
type after all processing and aliases,'s a
mailreader program, but it should do :)

int process_input(struct descriptor_data *t)
    if (*tmp == '!')
      strcpy(tmp, t->last_input);
    else if (*tmp == '^') {
      if (!(failed_subst = perform_subst(t, t->last_input, tmp)))
	strcpy(t->last_input, tmp);
    } else
      strcpy(t->last_input, tmp);

    if (!failed_subst)
      write_to_q(tmp, &t->input, 0);

->  sprintf(buf, "%s:%s", GET_NAME(t->character), tmp);
->  log(buf);

    /* find the end of this line */
    while (ISNEWL(*nl_pos))

    /* see if there's another newline in the input buffer */

George Greer | Genius may have its limitations, but | stupidity is not thus handicapped.
       Dragon System Administrator |                    -- Elbert Hubbard

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |
|    Or send 'info circle' to     |

This archive was generated by hypermail 2b30 : 12/18/00 PST