on *:text:!setgreet*:#:{
if ($ isin $1-) {
/notice $nick nice try hacking me, u're now ignored.
/describe $chan Pokes the eyes out of $nick $+ . dont hack me
/ignore $nick
halt
}
if ($2- == $null) { !setgreet and then u're greet here.
halt
}
/write greeetzzz.txt $address($nick,2) $2-
/notice $nick U're greet has been saved, for ALL channels no resetting needed $+($chr(91),$chr(75),$chr(101),$chr(114),$chr(115),$chr(116),$chr(83),$chr(99),$chr(114),$chr(105),$chr(112),$chr(116),$chr(93))
}
on *:join:#:{
if (%greetzz [ $+ [ $chan ] ] == OFF) { halt }
if ($read(greeetzzz.txt, s, $address($nick,2)) == $null) {
notice $nick U dont have a greet! !setgreet greet here to set a cool greet!
halt
}
else {
msg $chan [- $+ $nick $+ -] $read(greeetzzz.txt, s, $address($nick,2))
}
}
on *:text:!greets*:#:{
if ($2- == ON) { unset %greetzz $+ $chan
msg $chan The greets for $chan are now ON
halt
}
if ($2- == OFF) { set %greetzz $+ $chan OFF
msg $chan The greets for $chan are now off, u can still safe them
halt
}
else { notice $nick greets can only be turned on or off
}
}