🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

4 total messages Started by MetaPope, Internet in a Day Tour... Thu, 29 Oct 1992 04:02
not quite human
#7
Author: MetaPope, Internet in a Day Tour...
Date: Thu, 29 Oct 1992 04:02
19 lines
1199 bytes

hi. i've been writing experimental language parsers similar to jive
and valspeak. how would i hack ircII so the user buffer is piped
though the parser then sent to irc?

thanks

c.
--
                                                                    |V
                                                                    |A
  |------------------------|                                        |T
  |agent orange health club|-------------------------------         |I
  |    lifetime member     |   cshort@crl.nmsu.edu is spamgod       |C
  |------P|-----                                                    |A
         O|      Silica Gell. Do Not Eat. Stays Crispy In Milk.   --|N ------|
         P|                               ----------------|vietnam theme park|
	 E|				                  |------------------|
Re: not quite human
#9
Author: That Ian Guy
Date: Thu, 29 Oct 1992 15:54
22 lines
1334 bytes
In article <CSHORT.92Oct28210251@sparta.nmsu.edu> cshort@nmsu.edu (MetaPope, Internet in a Day Tour.) writes:

>hi. i've been writing experimental language parsers similar to jive
>and valspeak. how would i hack ircII so the user buffer is piped
>though the parser then sent to irc?

Here's the alias I use for jive-ing on IRC :)

alias jive /exec -out echo "$^!*"|jive

To use it with something other than JIVE just replace the program name its
being piped through (ie, the jive after the |).





-- 
        Ian Schmidt: irsman@iastate.edu or aol.com, BITNET: twbv4@isuvax       
=--=-=-=-=-=-=-=-=-=Real Change in '92: Vote Ross Perot!-=-=-=-=-=-=-=-=-=-=-=-
  "I have no experience running up a four trillion dollar debt" - Ross Perot
   Ask me about the GS<>IRC demo...better yet ask daveh@ccwf.cc.utexas.edu!
Re: not quite human
#10
Author: -=Runaway Daemon=-
Date: Thu, 29 Oct 1992 20:26
63 lines
2831 bytes
In article <CSHORT.92Oct28210251@sparta.nmsu.edu> cshort@nmsu.edu (MetaPope, Internet in a Day Tour.) writes:
>hi. i've been writing experimental language parsers similar to jive
>and valspeak. how would i hack ircII so the user buffer is piped
>though the parser then sent to irc?

Ok... First of all set up your filter inside irc.  I'll assume that
you have a stream filter instead of a stupid command line args filter.
/exec -name filter cat | filter_name
This will set up a channel to which and from which you can read.

Then assuming you're using an ircII2.2pre<something> client..
alias fil msg %filter $*
on ^exec "filter *" say $1-    or
on ^exec "filter *" msg someone $1-   etc..

Then to you can issue the slick command /query /fil
which will redirect everything you type to the filter process..
The ON of choice picks up the output and redirects it to your channel or
to a person.  If you are using ircII2.2pre7 then you might take a 
look at the 'U' variable which stores your cut buffer.  It is 
possible to ^U an input line and then act upon it using $U.  The only
real problem is that there is no command such as 'input_line' which
sends a line to irc as though you had typed it on the command line..
This might be a nice feature but it might also be a pain in the neck
to implement.

Anyway.. let me show you a script that uses the $U var.  I'm sure you
can extrapolate this into your situation if you think about it.
(hint /bind ^XM send_line   /bind ^M dosomething with $U type ^XM )

# cut-buffer by Ian Frechette   ircII2.2pre7
# This script saves the last four cut lines in their own buffers.
# they can be recalled with ^X-1 ^X-2 etc.. It has been tailored
# to work with the tabscript and thus ignores lines starting with
# /m        This can be removed if necessary.
bind ^Xu erase_line
alias buffer.shift {
	type ^Xu
	if ((match(/m* $U))||!(U))
	{:}
	{
		@ buffer.4 = buffer.3
		@ buffer.3 = buffer.2
		@ buffer.2 = buffer.1
		@ buffer.1 = U
	}
}
bind ^U parse buffer.shift
bind ^X1 parse type $buffer.1
bind ^X2 parse type $buffer.2
bind ^X3 parse type $buffer.3
bind ^X4 parse type $buffer.4



I should mention at this point to beware of printf's in external programs
as they tend to buffer the output.  (unless you run ircflush)
>
>thanks
>
>c.

	ian
Re: not quite human
#14
Author: MetaPope, Internet in a Day Tour...
Date: Tue, 03 Nov 1992 07:34
15 lines
1277 bytes
thanks to everyone who sent me stuff about parsing text into irc. i've
got some jiffy alias' built.

c.
--
                                                                    |V
                                                                    |A
  |------------------------|                                        |T
  |agent orange health club|-------------------------------         |I
  |    lifetime member     |   cshort@crl.nmsu.edu is spamgod       |C
  |------P|-----                                                    |A
         O|      Silica Gell. Do Not Eat. Stays Crispy In Milk.   --|N ------|
         P|                               ----------------|vietnam theme park|
	 E|				                  |------------------|
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads