[Prev][Next][Index][Thread]

# Re: commands for un-logged in users

- Date: Tue, 26 Mar 1996 16:47:57 PST
- From:
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-to: <2.2.32.19960326195913.006770e0@pop.kaiwan.com>

    > At 11:34 AM 3/26/96 PST, Seth I. Rich wrote:
    > >Is there a way to flush the input buffer within verb code (so it can go into
    > >$guest:disfunc or :defer or somewhere sensible)?
    > >
    >
    On Tue, 26 Mar 1996 slayer@kaiwan.com wrote:
    > force_input(guest, connection_option(guest, "flush-command")) comes to mind,
    > but that might not work.
    >
    According to the changelog:

    	 if a raw line of input is equal to that connection's flush
       command, then all pending input on the connection is flushed and a message
       is printed back to the connection describing what happened.

    This suggests to me that force_command is unnecessary, so just
    (connection_option(guest, "flush-command"))() ;

    ...might do it.  Two problems:

    (1) That resulting 'hey, I flushed your input' message is multiline and
    might confuse a poor guest, and there is no way to customize (i.e.
    eliminate) it from within the db.

    (2)  A connection need not have a flush command, although it does by
    default.  You can set the flush command to be null, however.

    so:

    if (cmd = connection_option(guest, "flush-command"))
    		(cmd)() ;
    endif

References:

- Re: commands for un-logged in users

- From: slayer@kaiwan.com

- Prev: Re: commands for un-logged in users
- Next: Re: commands for un-logged in users
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index