Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

How does one remove all glines?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    SearchIRC Forum Index -> Suggestions / Comments
Author Message
Telume
none
none


Joined: 06 Jul 2007
Posts: 12

PostPosted: Aug 08, 2007 12:54am    Post subject: Reply with quote

UnrealIRCd has a module called m_rmtkl which allows you to remove all the *lines without the hassle, of course it might not be available, but I'll put it up for download if you need me to.
Back to top
FullSpectrum
none
none


Joined: 15 Jan 2007
Posts: 7

PostPosted: Aug 08, 2007 7:58am    Post subject: Reply with quote

Are you using a script to connect to irc? or just straigh MIRC...if you're using a script, try putting that in remotes on a plain MIRC as it may be affected by scripts already running.

I have used that code on various versions of unreal with and without anope so it should work.

Did you guys make any special mods to your ircd?
Back to top
SoulReaper
none
none


Joined: 12 Oct 2007
Posts: 1

PostPosted: Oct 13, 2007 9:30am    Post subject: Re: Mass Gline Remove Reply with quote

FullSpectrum wrote:
As long as you're using unreal...this will work

Put this in your remotes:

Code:
 raw 223:*: { gline $+(-,$3) }

For gzlines just do:

raw 223:*: { gzline $+(-,$3) }



Then close script editor and type /gline

This will clear your list. You have to do gline/gzline seperately. After your done removing MAKE SURE YOU DELETE THE CODE OR COMMENT IT OUT BY PUTTING ############ IN FRONT. If you fail to do this, every time you try and get a gline list it will mass remove.


Many thanks! Worked like a charm!

I loaded it into UPP as a script and typed gline and removed them all. Thanks again!
Back to top
gadfire
none
none


Joined: 25 Jan 2006
Posts: 28

PostPosted: Oct 14, 2007 9:56am    Post subject: Reply with quote

thanks
Back to top
ircmojo
Lurker
Lurker


Joined: 02 Mar 2007
Posts: 215
Location: $HOME sweet $HOME

PostPosted: Oct 14, 2007 12:16pm    Post subject: Reply with quote

how about this:

Add this to aliases:
Code:

rmglines {
 set %rmg 1
 $iif($1 == -z, set %z 1)
 stats g
}


modify the given code to this:

Code:

; raws
raw 223:*: {
  if (%rmg) {
    if (%z) {
      gzline $+(-,$3)
    }
    else {
      gline $+(-,$3)
    }
    unset %rmg  %z
  }
}


This way you type: /rmglines to remove glines and /rmglines -z to remove gzlines instead of /gline and you removing/commenting code.
Back to top
PingBad
Guru
Guru


Joined: 05 Feb 2005
Posts: 2031
Location: New Zealand

PostPosted: Oct 14, 2007 1:55pm    Post subject: Reply with quote

I'm surprised nobody's mentioned this, but raw 223 also returns the type of line (at least it does on UnrealIRCd) - and if my shocking memory serves me, $2 will return either G or Z depending on if the line is a G:Line or GZ:Line, respectively. So people might want to consider this into their code
Back to top
ircmojo
Lurker
Lurker


Joined: 02 Mar 2007
Posts: 215
Location: $HOME sweet $HOME

PostPosted: Oct 14, 2007 3:58pm    Post subject: Reply with quote

PingBad wrote:
I'm surprised nobody's mentioned this, but raw 223 also returns the type of line (at least it does on UnrealIRCd) - and if my shocking memory serves me, $2 will return either G or Z depending on if the line is a G:Line or GZ:Line, respectively. So people might want to consider this into their code


True, but it may not be a wise idea to try to remove both with a single command.
Back to top
PingBad
Guru
Guru


Joined: 05 Feb 2005
Posts: 2031
Location: New Zealand

PostPosted: Oct 15, 2007 12:51am    Post subject: Reply with quote

still, it's wise to check that the result returned is indeed a G:Line or a GZ:Line (trying to remove one type with the other command will only result in a "No such G[Z]:Line exists" or something to that effect every time it hits a snag)
Back to top
ircmojo
Lurker
Lurker


Joined: 02 Mar 2007
Posts: 215
Location: $HOME sweet $HOME

PostPosted: Oct 15, 2007 4:55am    Post subject: Reply with quote

The ircd knows the difference between a gline and a gzline, so mirc doesn't need to know. When you gline -, only the G's are removed. If you ever type /gline -*@host and it removes gzlines as well, then you have a bug to report.

In short, the script doesn't need to know the difference, it just needs to know which command to send to the ircd. Hence the -z switch in my code.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> Suggestions / Comments All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer