Wade commented on a Page, Invite Message  -  Feb 24, 2012

This is a very basic one, should cover what you need tho :) Unforunatly you cant check if a nick isop without joining the channel. The reason the check is on a timer is because the IAL isnt updated until the join event ends, so if you check if $nick isop before the join event has ended it wont see them as an op.

on *:INVITE:#: {
  if (!$hget(spamcheck,$chan)) {
      hadd -mz spamcheck $chan 60
      hadd -mu5 invite $chan $nick 
      join $chan
  }
  else {
      .notice $nick I was just invited to $chan $+ . Please wait $duration($hget(spamcheck,$chan)) before inviting me again
  }
}

on *:JOIN:#: {
  if ($nick == $me) && ($hget(invite,$chan)) {
      $+(.timer_checkop_,$chan) 1 1 check_op $hget(invite,$chan) $chan
  }
}

alias check_op {
  if ($1 isop $2) || ($1 ishop $2) {
      msg $2 Hi there im $me $+ . I was invited by $1 $+ .
  }
  else {
      part $2 I was invited by a non-op. Please try again
  }
}
 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.