AmigaActive (7/1338)

From:John Nelson
Date:1 May 2001 at 01:04:12
Subject:Re: AmIRC Arexx Script

Hi jn_amiga@yahoo.co.uk,

> I`ve just got hold of this AmIRC script that replies 2 a certian
> person everytime he types a message or privately messaged you,
> but the thing is it doesn`t use /msg as you`re reply, as it just
> types it anywhere you are, and the way the script works it doesn`t
> allow a host mask, I think.

This quick example only replies to private messages but by looking and the
code I`d say thats all the original did. Uses host mask and replies
privately.

Type '/msg <yournick> RTFQUIT' to stop the script

/* Quick test */

options results

host = '*!*JohnN@*.blueyonder.co.uk'

'Echo ReplyToFriend Starting - To Exit'
'Echo /Msg yourself with message RTFQUIT'

DO FOREVER
'GETLINE'

'GETMYNICK'
mynick = Upper(result)

Parse var LINE.PREFIX nick '!' mask

IF Upper(nick) = mynick & Upper(LINE.REST)=':RTFQUIT' THEN DO
'Echo ReplyToFriend Exiting'
Exit 0
END

IF Upper(LINE.DEST) = mynick & Upper(nick) ~= mynick THEN DO
'MatchUserHost 'LINE.PREFIX' 'host
IF RC=1 THEN 'Say /msg 'nick' Hello 'nick
END

END
Exit 0

Catch ya l8ta
John Nelson




A1200T 040/33Mhz 2+32Fast 1.1Gb HDD 40xCDROM WB3.9

Also 2xA1200, A600, A500+, A500 - ICQ UIN: 72001636

Homepages http://web.ukonline.co.uk/amigadude/ - Updated: 22/01/00

*John Nelson* - Miggying for over 10 years

DISK CRASH BBS - 360K ONLINE

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/