home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.irc
- Path: sparky!uunet!think.com!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mycroft
- From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
- Subject: Re: userhost()
- Message-ID: <1992Nov8.034748.29328@mintaka.lcs.mit.edu>
- Sender: news@mintaka.lcs.mit.edu
- Organization: /etc/organization
- References: <Bx5rq1.E42@news.cso.uiuc.edu> <1992Nov3.224311.19052@murdoch.acc.Virginia.EDU> <Bx6LKA.1xC@news.cso.uiuc.edu>
- Date: Sun, 8 Nov 1992 03:47:48 GMT
- Lines: 25
-
-
- Here's my autokicker for 2.2pre7. I haven't used it much myself.
-
-
- ALIAS STRIPCHAN {
- assign function_return $strip(#+-*/\\={}[]<>!@$$%^~`,?:|'\". $0-)
- }
-
- ASSIGN AUTOKICKS[] *!*@coombs.anu.edu.au
- ASSIGN AUTOKICKS[HACK] *!tami@*.gnu.ai.mit.edu
-
- ON #^JOIN 17 * autokick.join $0 $1 $stripchan($1) $0!$userhost()
- ON #^NICK 17 * autokick.join $1 $C $stripchan($C) $1!$userhost()
-
- ALIAS AUTOKICK.JOIN {
- if ([$0] != [$N])
- {
- if (rmatch($3 $autokicks[] $autokicks[$2])) {kick $1 $0}
- }
- }
-
- --
- \ / Charles Hannum, mycroft@ai.mit.edu
- /\ \ PGP public key available on request. MIME, AMS, NextMail accepted.
- Scheme White heterosexual atheist male (WHAM) pride!
-