Gline List Dialog

By Gemster on Jul 28, 2010

An advanced Gline dialog. This dialog will display the full gline list on the server with options to delete selected gline or add a gline. Was requested so I made it and shared it :D

Also has the fuction to search the gline list for an ip or host that u enter, if found it will select it so u can easly clcik delete gline :D

Easy to search and manage the full gline list.

To add, open remote (alt+r) add to a new file.
to use, right click in any channel or staus window and click "Gline List"

You must be an ircop to use this.

Enjoy...

Gemster

Edit: Updated.
You can now multi select and mass remove glines and gzlines
Loads straight away, no more waiting 5 seconds.
List box made a little bigger for those who have a big reason added.
Added Add Gzline button

Menu channel,status { 
  &Gline List:/dialog -m glinelist glinelist
}

on *:DIALOG:glinelist:init:0: {
  .enable #glinelist 
  gline
  .timergls 1 2 did -z glinelist 1
}

dialog glinelist {
  title "Gline List"
  size -1 -1 325 301
  option dbu
  list 1, 6 18 313 205, size extsel hsbar vsbar
  button "Delete Selected Gline(s)", 2, 6 228 70 10
  button "Delete Selected Gzline(s)", 3, 78 228 70 10
  box "Add Gline / GZline ", 4, 6 243 313 52
  edit "<user@host> or <*@ip>", 5, 12 258 100 10
  edit "<reason>", 6, 114 258 100 10
  radio "30 mins", 7, 12 270 30 10
  radio "1 hour", 8, 12 282 30 10
  radio "5 hours", 9, 42 270 30 10
  radio "24 hours", 10, 42 282 30 10
  radio "3 days", 11, 78 270 30 10
  radio "7 days", 12, 78 282 30 10
  radio "30 days", 13, 108 270 30 10
  radio "Perm", 14, 108 282 30 10
  button "Gline", 15, 144 270 37 10
  button "Gzline", 16, 144 282 37 10
  edit "", 17, 6 6 166 10
  button "Search", 18, 174 6 37 10
  button "Refresh", 19, 282 6 37 10
  text "No of Lines:", 21, 268 228 29 8
  edit "", 22, 298 227 21 10, disable center
}

on *:dialog:glinelist:close:*:{ write -c glinelist.txt
  unset %glinelisttime
  .disable #glinelist
}

ON *:DIALOG:glinelist:sclick:2:{
  var %x 1 
  while (%x <= $did(glinelist, 1, 0).sel) { 
    gline - $+ $gettok($did(glinelist, 1, $did(glinelist, 1, %x).sel).text,2,32)
    inc %x 
  } 
  did -r glinelist 1
  gline
}

ON *:DIALOG:glinelist:sclick:3:{
  var %x 1 
  while (%x <= $did(glinelist, 1, 0).sel) { 
    gzline - $+ $gettok($did(glinelist, 1, $did(glinelist, 1, %x).sel).text,2,32)
    inc %x 
  } 
  did -r glinelist 1
  gline
}

ON *:DIALOG:glinelist:sclick:18:{
  glinesearch $did(17)
  if (%glinesearch == 0) { dialog -m glinelisterror glinelisterror }
  else { did -ck glinelist 1 %glinesearch }
}

ON *:DIALOG:glinelist:sclick:19:{
  did -r glinelist 1
  gline
}

ON *:DIALOG:glinelist:sclick:7-14: { 
  set %glinelisttime $replace($did,7,30m,8,1h,9,5h,10,24h,11,3d,12,7d,13,30d,14,0)
}

ON *:DIALOG:glinelist:sclick:15:{
  gline $did(5) %glinelisttime $did(6) 
}

ON *:DIALOG:glinelist:sclick:16:{
  gline $did(5) %glinelisttime $did(6) 
}

alias glinesearch { 
  noop $read(glinelist.txt,w,$+(*,$$1,*))
  set %glinesearch $readn 
}

dialog glinelisterror {
  title "Error"
  size -1 -1 121 45
  option dbu
  text "Sorry There Was No Result Returned For Your Search...", 1, 4 4 113 14, center
  button "OK", 2, 45 28 30 10, ok
}

#glinelist off
raw 223:*:{ 
  $iif($dialog(glinelist), did -a glinelist 1 $2-)
  write glinelist.txt $2- 
  haltdef 
  did -ra glinelist 22 $lines(glinelist.txt)
}

raw 219:*:{ 
  haltdef
}

Comments

Sign in to comment.
cofvempire   -  May 16, 2012

when u do a gline like this: /gline @80 1d perminint
u r trying to ban alot of ppl thats why u get that error (too broad mask)

so try banning like this:
/gline @80.70.80 1d perminint
or
/gline *@80.70.80.70 1d perminint

note: ip is made up

 Respond  
BigSteve   -  May 14, 2012

ask the person who owns the server its server side on the conf files

 Respond  
johnwm   -  May 14, 2012

please help me..

 Respond  
johnwm   -  May 14, 2012

so how can i chek it...?

 Respond  
Cheiron   -  May 14, 2012

yeap that is server side set on the unreal block.

without editing that .. you cant do anything :)

 Respond  
johnwm   -  May 14, 2012

i am using this command but it shows wrong kindly tell me right command thanks

/gline @80 1d Perminent

*** [error] Too broad mask

 Respond  
Mafia05   -  Mar 16, 2011

Sorry about that Gemster, .. and thnx 4 ur help
PuNkTuReD ..

 Respond  
Gemster   -  Mar 14, 2011

Sorry its taken so long guys but here is the update.

You can now multi select and mass remove glines and gzlines
Loads straight away, no more waiting 5 seconds.
List box made a little bigger for those who have a big reason added.
Added Add Gzline button

I havent added any other bans YET as this is a global ban list dialog.

Thanks
Gemster

 Respond  
Gemster   -  Mar 07, 2011

Yes his last 2 or 3 posts where unrelated to this snippet.

Thanks
Gemster

 Respond  
PuNkTuReD   -  Mar 06, 2011

nah, he had also asked about making an unrelated snippet.

 Respond  
Jethro   -  Mar 06, 2011

Gemster, I thought Mafia05 used your snippet here and wanted to change gline and gzline to akill only?

 Respond  
Gemster   -  Mar 05, 2011

Mafia05 i removed your last couple of posts. Please use the forums and request help there for your scripts.

http://www.hawkee.com/phpBB2/viewforum.php?f=9

Thanks
Gemster

 Respond  
Mafia05   -  Feb 25, 2011

nice work guys, thank you...
the reason y i needed this, is becouse on myserver i dont user glines.. i use Akill's

 Respond  
BigSteve   -  Dec 03, 2010

and REMEMBER TO MAKE sure the icon file is where the scripts are :D

 Respond  
BigSteve   -  Dec 03, 2010

plus under size add

 icon "whatever.ico"

this will put the picture you want up :D

 Respond  
PuNkTuReD   -  Dec 01, 2010

wouldnt that be "stats G" cheiron?

and for those who arent worried about flooding off

UNTESTED

menu * {
  Clear Gline: set %glineclear true | stats G
}
raw *:*: { $iif($numeric == 223,gline $+(-,$3),$iif($numeric == 219,unset %glineclear)) | haltdef }

note: not all servers use the same raw numerics, so im not going to guarantee itll work.

 Respond  
blackvenomm666   -  Dec 01, 2010

nicely done

 Respond  
Cheiron   -  Nov 29, 2010

that was for unrealircd 3.2.8.1 with anope 1.8.4

what version you running and what level oper do you have

 Respond  
Mafia05   -  Nov 29, 2010

damn.. it didnt work, it only pops this up /Stats flags: ..on my status

 Respond  
Mafia05   -  Nov 29, 2010

thank you :))

 Respond  
Cheiron   -  Nov 28, 2010

as promised... one code to mass remove glines .. please note though that this code will remove EVERY gline plus potentially flood you off the server so its used at your own risk..

menu * {
   Clear Gline: set -u5 %glineclear true | stats 
 }
 raw 223:*:{ if (%glineclear) { gline - $+ $3 } } 

the code will only run for 5 secs though to help limit damage.

 Respond  
Cheiron   -  Nov 28, 2010

there is no default way on unreal/anope to mass remove all..
you would have to custom code a script to do so. i am sadly not on my other pc atm.. but i do have a code to mass remove :) will post later

 Respond  
Mafia05   -  Nov 28, 2010

how can i selec all of them, couse i like to do mass remove all the glines, i hatte removein them one by one lool ..

 Respond  
cofvempire   -  Nov 27, 2010

works :) and dialog is nice.
i like the counter also and omg over 300 glines lolz :p

tnx :)

 Respond  
Mafia05   -  Nov 13, 2010

y i cant select all of them? is sucks one by one.. can u fix it?

 Respond  
Cheiron   -  Sep 16, 2010

just a bump for you Gemster to check how the update on this one is going to cover the other sections being added

 Respond  
TophBeiFong   -  Aug 04, 2010

nice 10/10

 Respond  
irchainscriptz   -  Aug 02, 2010

Have to agree with Cheiron would like to see more bans and etc on this, as its a good script. looking forward to the new updates Gemster

 Respond  
Frine   -  Jul 29, 2010

Didn't Checked Yet, Looks Great 10/10.

 Respond  
Gemster   -  Jul 29, 2010

Thanks guys, Ill defo look into that way of coding it when i get around to updating it :D

Thanks
Gemster

 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.