[size=17]Please stop using all the halts and returns.[/size]
on *:join:#: {
if ($($+(%,joinmsg,$nick),2) != $false) && (!$($+(%,flood,$nick),2)) {
set -eu9 $+(%,flood,$nick)
notice $nick Hey $nick! Welcome in # . Enjoy your stay!
.timer 1 2 notice $nick Dont want this message when you join a channel? Type: !joinmsg off
}
on $*:text:/^!joinmsg on|off$/iS:#: {
if $2 == off {
set $+(%,joinmsg,$nick) $false
notice $nick Your join message has been turned off.
.timer 1 2 Want to turn it back on? Type !joinmsg on
}
else {
if $($+(%,joinmsg,$nick),2) != $false { notice $nick Your join message is already on! }
else {
unset $+(%,joinmsg,$nick)
notice $nick Your join message is now turned on.
}
}
_____________________________________________________________________________________________________