All pastes #912266 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-21 06:53 UTC
rendered paste body
; Auto Voice System v1.1, beta 1
; By voLume_ (Anthoni Giskegjerde)
; Copyrighted, All rights reserved
;----------------------------------------------------------

on 1:JOIN:#: {
  if(%autovoice == on) { goto auto }
  if($chan != "iphone") { goto end }
  if(%autovoice == off) { goto end }
  :auto
  if($me == isop) { goto give }
  else { goto end }
  :give
  /mode # +v $nick
  :end
}


alias techo {
  if (%scriptstamp == 1) { echo -at %s $1- }
  else { echo -a %s $1- }
}


on 1:LOAD {
/set %scriptstamp 1
/set %s 2»
/techo Thanks for downloading this addon...
/techo This is my first addon. So its maybe not be good...
/techo ------------------------------------------------------------------------------
/techo Copyrighted: Anthoni Giskegjerde, All rights reserved
/set %autovoice on
}

menu menubar,nicklist,channel {
-
Autovoice ( $+ %autovoice $+ )
.On:/set %autovoice on | /techo Autovoice is now ON
.-
.Off:/set %autovoice off | /techo Autovoice is now OFF
.-
.Unload:/unload -rs autovoice.mrc | /echo -a Unloaded successfully...
}