ChristianEthics-VSIXc V3.2
Updated Sept 2006 to work on VSIXc Chat Network
www.VSIXc.com
_________________________________________________________________________
E-mail: ChristianEthics2@yahoo.ca 
Messenger: ChristianEthics@hotmail.com 
Home page: http://ca.geocities.com/christianethics2
Message Board: http://groups.yahoo.com/group/ChristianEthics_BibleBotDownloadZone/
__________________________________________________________________________

Deop Protection.
Edited Sept 2004 to work with clearmsn and vincula
____________________________________________________________________________

*Do not edit this file.
Editted this file for V8.1, added the following line 
/msg $chan %deopm
If this file stops working, delete it and turn on and off to re-set changes.
__________________________________________________________________________


alias deopm.set {
  set %deopm $?="Enter the De-op message you want displayed. The current message is: %deopm $+ ."
}

on *:LOAD:{  set %deopp $=deop On | /splay chimes.wav | set %deoppass $$?="Enter Valid Host Pass OR Owner Pass for the Deop Protection" | deopm.set | /splay notify.wav 
}
on *:UNLOAD:{ set %deopp $=deop Off | /splay unload.wav
}
on *:RAWMODE:*: {
  if ($$2 == $Me) && (-q isin $1-) {
    if ($nick == $Me) halt
    /pass %deoppass
    .inc -u30 %deoptimesq [ $+ [ $nick ] ] 
    if (%deopm = $null) %deopm = don't deop me!
    /msg $chan %deopm
    if (%deoptimesq [ $+ [ $nick ] ] == 2) && ($nick ison #) {
      access $chan delete owner $nick 
      access $chan delete owner $address($nick,2)
      access $chan add deny $nick 5 OwnerLock. 
      /ruser ownerlist $nick
      kick $chan $nick Deop Protection on. 5 Minute Ban. 
      /unset %deoptimesq [ $+ [ $nick ] ]
      halt
    }
  }
  if ($$2 == $Me) &&  (-o isin $1-) { 
    if ($nick isowner #) /halt
    /pass %deoppass 
    .inc -u5 %deoptimesh [ $+ [ $nick ] ] 
    if (%deoptimesh [ $+ [ $nick ] ] == 2) && ($nick ison #) {
      access $chan delete host $nick 
      access $chan delete host $address($nick,2) 
      access $chan add deny $nick 5 HostLock. 
      kick $chan $nick Deop Protection on. 5 Minute Ban. 
      /ruser hostlist $nick
      /echo $color(kick text) -at [ De-op Protection On. Removing Host Access.. ]
      /unset %deoptimesh
      halt
    }
  }
}


;***Part of this script was written by persons unknown to me, but
known to God.
