View Issue Details

IDProjectCategoryView StatusLast Update
0002312unrealircdpublic2015-07-19 19:59
ReporterStealth Assigned Tosyzop  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
Summary0002312: Removing multiple *:lines
DescriptionIt would be nice to be able to remove multiple *:Lines by specifying a wildcard mask. Since this can be abused by some opers, Unreal should restrict the ones considered "too broad" to Services Admins and above.
TagsNo tags attached.
3rd party modules

Relationships

has duplicate 0002563 resolvedstskeeps Include m_rmtkl's functionality 
related to 0000840 resolvedstskeeps [Feature Request] - /gline -ALL 
child of 0003284 closedsyzop 3rd Party Module Wishlist 

Activities

codemastr

2005-02-02 18:14

reporter   ~0008982

It's much more difficult than you might think. Consider:

*@*.someisp.com
*@*.com

if I type /gline -*@*.com what should it do? Remove both? Or just *@*.com?

aquanight

2005-02-03 12:40

reporter   ~0009003

Well, I think angrywolf's m_rmtkl module would remove both, but in that case, it's disabmiguated from just removing the exact match simply by being a different command...

Stealth

2005-02-03 13:17

reporter   ~0009006

What about a flag or a different prefix for the address? Like "/gline -w <wildcard>" or "/gline $<wildcard>" (it can be something other than "$", that char was the first that came to mind for some reason).

tabrisnet

2007-04-15 16:51

reporter   ~0013411

For a possible guideline...
I took the concept of /stats g's filtering
and I wrote a function for SrSv (in SecurityBot) with the following help entry

%BSecurityBot TKL%B is a series of functions to make TKL
handling easier. Specifically it will help in handling
G:lines and GZ:lines.

Syntax is as follows:

TKL LIST [(+/- filters) [params]]
TKL DEL <(+/- filters) <params>>

Filters are case-sensitive.

Filter-parameters may be delimited by // (for regexps) or
"" (for regexps or strings). Otherwise space delimiters are
assumed. if there is a mismatch in the filter vs param count,
the command WILL fail.

Filters may be any of:
  Globbing filters
    r %BReason%B
    m %BMask%B (ident@host only)
    s %BSetter%B
  Regular Expression filters
    R %BReason%B
    M %BMask%B (ident@host only)
    S %BSetter%B
  Miscellaneous Filters
    O/o %BOrder by%B (Sort by) - case insensitive.
         negative is Descending, positive is Ascending.
         You can specify multiple of these, but the
         resulting sort order is not always intuitive.
         Default is type,time,host Ascending.
         Legal, but not necessarily meaningful for delete.
         Available sort fields: %Btype%B, %Bident%B, %Bhost%B, %Bsetter%B,
         %Bexpire%B, %Btime%B, %Breason%B.

Example:

TKL LIST -r+s *warez* *netadmin*
would list all bans that do not include the word 'warez'
and set by an oper with 'netadmin' in their vhost.

tabrisnet

2007-04-15 16:53

reporter   ~0013412

BTW, I did allow the same filter type to be used multiple times, which /stats g does _not_

syzop

2007-04-26 05:40

administrator   ~0013720

--> 3rd party mod, IMHO.

aquanight

2007-04-27 00:05

reporter   ~0013752

have to agree with syzop (indeed it already is a third party module - could maybe give m_rmtkl a mention in docs or something (or toss it in extras/ ?)).

Issue History

Date Modified Username Field Change
2005-02-01 15:18 Stealth New Issue
2005-02-02 18:14 codemastr Note Added: 0008982
2005-02-03 12:40 aquanight Note Added: 0009003
2005-02-03 13:17 Stealth Note Added: 0009006
2006-10-16 11:31 syzop Relationship added related to 0000840
2006-10-16 11:31 syzop Relationship added related to 0002563
2007-04-15 16:51 tabrisnet Note Added: 0013411
2007-04-15 16:53 tabrisnet Note Added: 0013412
2007-04-18 05:13 stskeeps Status new => acknowledged
2007-04-26 05:40 syzop Note Added: 0013720
2007-04-26 06:22 stskeeps Relationship added child of 0003284
2007-04-27 00:05 aquanight Note Added: 0013752
2007-04-27 03:33 stskeeps Relationship replaced has duplicate 0002563
2015-07-19 19:59 syzop Status acknowledged => closed
2015-07-19 19:59 syzop Assigned To => syzop
2015-07-19 19:59 syzop Resolution open => no change required