Code: Select all
bind ctcp n page ctcp:page
proc ctcp:page { nick host handle dest key arg } {
if { [ catch { exec echo $arg | /usr/bin/mail -s "Eggdrop Paged by: $nick" me@myplace.com } fid ] } {
putserv "NOTICE $nick :\001Page failed: $fid"
} else {
putserv "NOTICE $nick :\001Page Page success!!"
}
return 0
}
BTW, Im aware that someone might send me 1000 emails as I dont have system stops that, but that seems like a minor problem that I can deal with on my own.
Thats all
Draugen.