|
|
| Author |
Message |
Telume none

Joined: 06 Jul 2007 Posts: 17
|
Posted: Aug 08, 2007 12:54am Post subject: |
|
|
| 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

Joined: 15 Jan 2007 Posts: 7
|
Posted: Aug 08, 2007 7:58am Post subject: |
|
|
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

Joined: 12 Oct 2007 Posts: 1
|
Posted: Oct 13, 2007 9:30am Post subject: Re: Mass Gline Remove |
|
|
| 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

Joined: 25 Jan 2006 Posts: 28
|
Posted: Oct 14, 2007 9:56am Post subject: |
|
|
| thanks |
|
| Back to top |
|
 |
ircmojo Lurker

Joined: 02 Mar 2007 Posts: 215 Location: $HOME sweet $HOME
|
Posted: Oct 14, 2007 12:16pm Post subject: |
|
|
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

Joined: 05 Feb 2005 Posts: 2064 Location: New Zealand
|
Posted: Oct 14, 2007 1:55pm Post subject: |
|
|
| 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

Joined: 02 Mar 2007 Posts: 215 Location: $HOME sweet $HOME
|
Posted: Oct 14, 2007 3:58pm Post subject: |
|
|
| 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

Joined: 05 Feb 2005 Posts: 2064 Location: New Zealand
|
Posted: Oct 15, 2007 12:51am Post subject: |
|
|
| 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

Joined: 02 Mar 2007 Posts: 215 Location: $HOME sweet $HOME
|
Posted: Oct 15, 2007 4:55am Post subject: |
|
|
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 |
|
 |
|