Bielie commented on a Page, On Join  -  Apr 21, 2010

@killerX This might be what your looking for:

on *:TEXT:?join*:#:{
  if (!$(,$+(%,flood,$nick))) {
    set -u3 $+(%,flood,$nick)
  }

  if ($address($nick,2) != $address($me,2)) {
    notice $nick You need to be a Moderator of this bot to use this command.
    return
  }

  notice $nick 5Conneting to $2 , Please wait......

  if ($2 == $null) {
    notice $nick 4Failed14 to join the channel because you didn't provide a channel name!
    return
  }

  if ($me ison $2) {
    .timer 1 3 notice $nick 4Failed14 to join $2 because I'm already in that channel!
    return
  }
  set -u5 %!join $+ $2 $chan
  join $2
}

else {
  .timer 1 3 msg $chan 2Succesfully14 joined channel $chan 
}

on *:JOIN:#:{
  if ($eval($+(%,!join,$chan),2) != $null) {
    .timer 1 3 msg $v1 3Successfully 5joined channel $chan 
    msg $chan 14I joined this channel because it was requested by the host of this Bot.
    unset %!join $+ $chan
  }
}
raw 474:*:{
  if ($eval($+(%,!join,$2),2) != $null) {
    notice Sphex 4Failed 14to join $2 because the bot has been banned from that channel.
    unset %!join $+ $chan
  }
}
 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.