admin/connection protector for chatspace

By tomparis on Nov 28, 2008

ok im new to this, and had some help with it as im learning but it does its job and is quite good

on *:snotice:*is now an IRC*:{
  if (%apro == on) {
    if ($level($4) == admin) halt {
    kill $4 11,1You are not on my 9,1safelist 11,1for 6,1Admin8,1/12,1Oper }
  }
}

on *:snotice:*client connecting on*:{
  if (%conblock == on) {
    kill $9 11,1Lockdown on...try again later ;]
  }
}

on *:SNOTICE:*unauthorized connection*:{
  if (%unau == on) {
    var %nick = $mid($7,1,$calc($pos($7,[,$count($7,[)) - 1))
    var %reason = $mid($9,$calc($pos($9,:,1) + 1),$len($9))) $10-
    if (%reason) .raw akill %nick 12,1(11,1You have A Server kline :)12,1)(11,1 %reason 12,1)
    if (!%reason) .raw akill %nick 12,1(11,1You have A Server Kline :)12,1)
  }
}

on *:snotice:*failed oper attempt*:{
  if (%foper == on) {
    kline $10 12,1(11,1 Lol close..but not cigar [[Çÿb€ri IRC Failed oper pro is on]] 12,1)
  }
}

menu channel,menubar {
  [Protections]
  .Failed Oper Protection
  ..F-Op On: set %foper on | echo -a $timestamp 11,1Failed Oper Enabled
  ..F-Op Off: set %foper off | echo -a $timestamp 11,1Failed Oper Disabled
  .Admin Protection
  ..Admin-Pro On: set %apro on | echo -a $timestamp 11,1Admin Protection Now Running.
  ..Admin-Pro Off: set %apro off | echo -a $timestamp 11,1Admin Protection Deactivated.
  ..Safelist: auser admin $$1
  ..Rem-Safelist: ruser $$1
  .Connection Blocker
  ..Con-Block On: set %conblock on | echo -a $timestamp 11,1Connection Blocker Now On.
  ..Con-Block Off: set %conblock off | echo -a $timestamp 11,1Connection Blocker Now Off.
  .Unauthorized Connect Killer
  ..Con-Killer On: set %unau on | echo -a $timestamp 11,1Unauthorized Connection Killer On 
  ..Con-Killer Off: set %unau off | echo -a $timestamp 11,1Unauthorized Connection Killer Off

Comments

Sign in to comment.
Gh0stm4ch1n3   -  Apr 22, 2010

OK,Thanks ;)

 Respond  
Cheiron   -  Apr 22, 2010

in that case .. you need to cross check the commands here with the operblock settings on your chatspace and make sure they match. otherwise i am not sure. i dont use chatspace

 Respond  
Gh0stm4ch1n3   -  Apr 22, 2010

yes im admin full control of server. im using chatspace and bot in via mirc v6.35

 Respond  
Cheiron   -  Apr 22, 2010

you must be Oper for a start for this script at first glance. secondly you must have the right level of Oper to use this.. thirdly.. it depends what IRCd you have and how the block is set for opers and adding.
this script as the title says is for the Chatspace ircd

 Respond  
Gh0stm4ch1n3   -  Apr 22, 2010

ok i added the script, right click gives me option, however when i click safelist to add admins nothing happens ;/ , am i doing something worng?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.