gooshie commented on a Page, Join message (on/off function)  -  Apr 28, 2010

[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.
  }
}
_____________________________________________________________________________________________________
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.