Top

Ban Protections


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  6.0 (of 2 scores)
Date Added  Dec 23, 2007
Last Updated  Dec 23, 2007
Tags  ban  dialog  dialogs  g13aoustis  mirc  protection  protections 

Introduction

Just A Simple ban protection with dialog

Grab the Code

dialog banprot {
  title "Ban Protections"
  size -1 -1 152 102
  option dbu
  tab "Ban Protection", 1, 1 1 157 100
  radio "ON", 2, 68 40 22 10, tab 1
  radio "OFF", 3, 68 52 22 10, tab 1
  text "Ban Protection", 4, 31 20 94 8, tab 1 center
  button "Done", 9, 59 75 37 12, tab 1 cancel
  tab "Undernet Ban Protection", 5
  text "Created By G13AoUsTiS", 10, 47 90 63 8, disable tab 1 center
  text "Created By G13AoUsTiS", 12, 47 90 63 8, disable tab 5 center
  radio "OFF", 6, 70 54 22 10, tab 5
  radio "ON", 7, 70 42 22 10, tab 5
  text "Undernet Ban Protection", 8, 33 22 94 8, tab 5 center
  button "Done", 11, 61 77 37 12, tab 5 ok
}
 
on *:dialog:banprot:sclick:*: {
  if ($did == 2) { /set %bprot ON }
  if ($did == 3) { /set %bprot OFF }
  if ($did == 7) { /set %uprot ON }
  if ($did == 6) { /set %uprot OFF }
}
 
on *:ban:#: {
  if (%bprot == ON) {
    if ($banmask iswm $address($me,5) && $nick == $me)  { mode $chan -b $banmask }
    else if ($banmask iswm $address($me,5)) {
      .mode # -ob+b $nick $banmask $address($nick,2)
      .kick # $nick Please Do Not Ban Me. Thank You
    }
  }
}
 
 
on *:kick:#:{ 
  if (%uprot == ON) {
    if ($nick == x) {
      if ($knick == $me) { 
        msg x ban # $+(*!*@,$remove($remove($1,$chr(40)),$chr(41)),.users.undernet.org)  Please Do Not Ban Me. Thank You
        msg x unban # $me  join # 
      } 
    } 
  } 
}
 
 
menu channel {
  -
  Ban Protections: /dialog -m banprot banprot
}
 

Comments

  (6)  RSS
Soulkeeper
Comments: 80
 
mIRC Snippet:  Ban Protections
Posted on Dec 23, 2007 5:27 pm
Wow, That's snazzy and all, but, Couldn't it be easier done?
on *:ban:#:{ if ($address($me,5) iswm $banmask) { cs unban $chan || notice $chan Please, DO NOT DEOP ME! }
Soulkeeper
Comments: 80
 
mIRC Snippet:  Ban Protections
Posted on Dec 23, 2007 11:29 pm
Sorry about double post, but you're missing some parentheses.
G13AoUsTiS
Comments: 37
 
mIRC Snippet:  Ban Protections
Posted on Dec 26, 2007 4:32 am
This is not for chanserv my friend :) But Thanks For Informing me:)
ISM
Comments: 21
 
mIRC Snippet:  Ban Protections
Posted on Jan 30, 2008 11:50 am
sould add to on Remot? if i get banned from adim how long would be join again same channle i were banned????/// thx for ur help
lonewolfe2015
Comments: 10
 
mIRC Snippet:  Ban Protections
Posted on Mar 15, 2009 11:35 pm
I don't understand how this works... but I tried banning my bot and nothing happened, so I am willing to accept that it is awesome.
PunkTuReD
Comments: 461
 
mIRC Snippet:  Ban Protections
Posted on Mar 16, 2009 2:09 am
this is a server specific ban system
its for undernet so if your not on undernet dont even bother trying this script, it wont work.

@G13AoUsTiS
you should add into the description that its only for undernet m8

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom