All pastes #737840 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-10-15 19:34 UTC
rendered paste body
on *:text:!autovoice status:#: {
  if ($me !ishop $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 (% [ $+ autovoice. $+ [ $chan ] ] == on) { msg $chan 7 $+ Autovoice for $chan is on | .halt }
  if (% [ $+ autovoice. $+ [ $chan ] ] == off) { msg $chan 7 $+ Autovoice for $chan is off | .halt }
  if (% [ $+ autovoice. $+ [ $chan ] ] == $null) { msg $chan 7 $+ Autovoice for $chan is not set | .halt }
}

on *:text:!autovoice version:#: {
  if ($me !ishop $chan) { notice $nick 4 $+ ERROR - I will only function on channels where i am opped | .halt }
  msg $chan 7 $+ Autovoice Script 0.1 Created by Rolz14 on 21st may 2005
}

on *:text:!autovoice help:#: {
  if ($me !ishop $chan) { notice $nick 4 $+ ERROR - I will only function on channels where i am opped | .halt }
  notice $nick :: AUTOVOICE HELP ::
  notice $nick !autovoice on
  notice $nick !autovoice off
  notice $nick !autovoice status
  notice $nick !autovoice version
  notice $nick :: Autovoice help ::
}

on *:join:#: {
  if ($me ishop $chan) {
    if (% [ $+ autovoice. $+ [ $chan ] ] == on) {
      .mode $chan +v $nick
    }
  }
}