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
>something.
>Good luck,
Think this will do it...logs the buffer of what they've
type after all processing and aliases, etc...it's a
mailreader program, but it should do :)
comm.c
int process_input(struct descriptor_data *t)
{
[snip]
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))
nl_pos++;
/* see if there's another newline in the input buffer */
[snip]
--
George Greer greerga@muohio.edu | Genius may have its limitations, but
http://www.ham.muohio.edu/~greerga | stupidity is not thus handicapped.
Dragon System Administrator | -- Elbert Hubbard
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
| Or send 'info circle' to majordomo@cspo.queensu.ca |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST