All pastes #204538 Raw Edit

Stuff

public text v1 · immutable
#204538 ·published 2006-10-16 01:23 UTC
rendered paste body
on 1001:text:!autoop on*:#: {
  if ($me !isop $chan) { notice $nick 4 $+ ERROR - I will only function on channels where i am opped | .halt }
  if ($nick !isop $chan) { msg $chan 4 $+ ERROR - You are not authorized for this command | .halt }
  if (% [ $+ autoop. $+ [ $chan ] ] == on) { msg $chan 4 $+ ERROR - Autoop for $chan is already on | .halt }
  .set % [ $+ autoop. $+ [ $chan ] ] on
  msg $chan 7 $+ Autoop for $chan is now on
}

on 1001:text:!autoop off*:#: {
  if ($me !isop $chan) { notice $nick 4 $+ ERROR - I will only function on channels where i am opped | .halt }
  if ($nick !isop $chan) { msg $chan 4 $+ ERROR - You are not authorized for this command | .halt }
  if (% [ $+ autoop. $+ [ $chan ] ] == off) { msg $chan 4 $+ ERROR - Autoop for $chan is already off | .halt }
  .set % [ $+ autoop. $+ [ $chan ] ] off
  msg $chan 7 $+ Autoop for $chan is now off
}

on 1001:text:!autoop status:#: {
  if ($me !isop $chan) { notice $nick 4 $+ ERROR - I will only function on channels where i am opped | .halt }
  if ($nick !isop $chan) { msg $chan 4 $+ ERROR - You are not authorized for this command | .halt }
  if (% [ $+ autoop. $+ [ $chan ] ] == on) { msg $chan 7 $+ Autoop for $chan is on | .halt }
  if (% [ $+ autoop. $+ [ $chan ] ] == off) { msg $chan 7 $+ Autoop for $chan is off | .halt }
  if (% [ $+ autoop. $+ [ $chan ] ] == $null) { msg $chan 7 $+ Autoop for $chan is not set | .halt }
}

on 1001:text:!autoop help:#: {
  if ($me !isop $chan) { notice $nick 4 $+ ERROR - I will only function on channels where i am opped | .halt }
  notice $nick :: AUTOOP HELP ::
  notice $nick !autoop on
  notice $nick !autoop off
  notice $nick !autoop status
  notice $nick :: AUTOOP help ::
}

on *:join:#: {
  if ($me isop $chan) {
    if (% [ $+ autoop. $+ [ $chan ] ] == on) {
      .mode $chan +o $nick
    }
  }
}