All pastes #729511 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-08 01:50 UTC
rendered paste body
on *:INVITE:#:{
  if ($comchan($me,0) == 30) { notice $nick Sorry, I'm already on 30 channels...More bots will be up soon. }
  else {
    set $+(%,inv.nick.,$chan) $nick
    join $chan
  }
}
on *:JOIN:#:{
  if ($nick == $me && $($+(%,inv.nick.,$chan),2)) {
    .timer 1 1 /check.op $($+(%,inv.nick.,$chan),2) $chan
    unset $($+(%,inv.nick.,$chan),2)
  }
}
alias /check.op {
  if ($1 isop $2 || $1 ishop $2) { msg $2 Hi, I'm $me $+ . I was invited by $1 $+ . To part me, simply kick me. }
  else { part $chan Sorry, but $1 is not an Operator (@) or a Half-Operator ( $+ $chr(37) $+ ) on this channel; it is required that you are one to invite $me $+ . }
}