Sponsored Links




Topic Options
Rate This Topic
#26 - 08/01/06 01:34 AM IRCOP: server ban list and easy removal
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 439
Loc: Burlington, VT
Originally posted by Cascul

After running as an ircop on another network i found removing sglines, shuns, klines, etc... tedious and not easy to find.

So I wrote this script and thought that some other ircops could use it as its quite handy wink

PS. For all those regular users out there, dont bother with this script since it wont do anything for you.


Put this in your remotes:
Code:
menu status {
  Show All Server Bans: {
    stats G
    stats K
    stats s
  }
}


raw 223:*: {
  window -abkl @Bans glineP.mrc
  if ($2 == s) { %bType = [SHUN_] }
  if ($2 == G) { %bType = [GLINE] }
  if ($2 == Z) { %bType = [ZLINE] }
  if ($2 == K) { %bType = [KLINE] }

  aline @Bans 11 $+ %bType $+  4 $+ $3  $str($chr(95),$calc(40 - $len($3))) $+  - 8Left( $+ $int($calc( $4 / 60)) $+ min) $+ $str($chr(95),$calc(5 - $len($int($calc( $4 / 60))))) - 0,12 $+ $7- 0,4 $+ $6
  ;haltdef
}


now you need to add a file called glineP.mrc to your mirc directory. This code lets you remove the bans from a popup menu.

glineP.mrc:
Code:
Remove Ban: {
  if ($strip($1) == [GLINE]) {
    gline - $+ $strip($2)
  }
  elseif ($strip($1) == [ZLINE]) {
    zline - $+ $strip($2)
  }
  elseif ($strip($1) == [SHUN_]) {
    shun - $+ $strip($2)
  }
  elseif ($strip($1) == [KLINE]) {
    shun - $+ $strip($2)
  }

    var %selstate = false
    var %iNum = 0
    while %selstate == false {
      %iNum = %iNum + 1
      if ($line(@Bans,%iNum).state) {
        %selstate = true
        dline @Bans %iNum
      }
      if (%iNum > 75) { return }
    }  
}


That should be it. You should now have a color coded and much easier to read (and remove) list of all the server bans on the server.

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top


Recent Posts
Thank You Moderators
by Firebucket
Today at 06:36 PM
Caps Warning
by iAlex
Today at 03:58 AM
mIRC on <censored> notice
by Jerry
09/03/08 08:29 PM
Who uses Twitter?
by Jerry
09/03/08 08:26 PM
Happy birthday usrbingeek!
by tplack
09/03/08 08:13 PM
What do you guys think the best IRC client is?
by iPhone
09/03/08 08:05 PM
!add !edIT !del for a mIRC bot
by boredcollegekid
09/02/08 05:14 PM
Using mIRC on multiple networks
by iAlex
09/02/08 01:20 AM
Profile Settings
by usrbingeek
09/01/08 03:15 PM
MyNick
by Jonny
09/01/08 05:49 AM
How do I identify on Rooms app for iPhone?
by techman224
08/31/08 06:26 PM
Automated Ban removal
by iPhone
08/28/08 11:32 PM
Recent Pics
Old school IRC
How to use Google!
TIX
Who's Online
1 Registered (1 invisible), 3 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 439
Kat 235
iPhone 99
Phil 90
Freekie 79
techman224 68
CCMike 66
Justin 62
wirelesspacket 52
tengrrl 51
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.