###############################################################
###  THIS SCRIPT SENDS A MAIL TO AN E-MAIL ACCOUNT WHEN A   ###
###      SPECIFIED NICK JOINS A CHANNEL THE BOT IS ON       ###
###############################################################
### DO NOT RIP THIS SCRIPT WITHOUT GIVING CREDIT TO "Alpha" ###
###        To contact me, go to #DarkLight on EFNET         ###
###    EDIT THIS FILE!!! Explained further down... READ!    ###
###############################################################

bind join * * join


###MARK

proc join {nick hand idx arg} {
### Enter Nick Where it says: Nick1  (REPLACE "Nick1") ###
	if {$nick == "Nick1"} {
### Enter Email adress that should be mailed (REPLACE "mail@host.com") ###
	set email mail@host.com
### Enter the channel the bot is on in the brackets below (REPLACE "####") ###
	exec mail -s "$nick is on #####" $email
   }
}
### MARK


putlog "OnJoin Mailer ver. 2.3 by Alpha  -  LOADED"


### TO ADD MORE NICKS, COPY THE TEXT BETWEEN "### MARK" ###
### THAT`S IT, ENJOY! :) ###

### (c) `98 Thorstein Klingenberg ###
