eir icon indicating copy to clipboard operation
eir copied to clipboard

eir should have command to search past bans

Open Svetlana-T opened this issue 9 years ago • 1 comments

Context

Often we quiet someone, then the quiet expires, we need to re-quiet (soon, or not soon), and we start thinking what duration to set. Was the user a problem before? If so, how many times? eir should be able to show all bans (active, and inactive ones too) matching a query.

Questions

  1. Do we need such command?
    • Yes?
  2. What should it be named?
    • Is btsearch ok?
  3. What should it search by? Possible answers for 'btsearch lamer':
    • Matches by nick - returns all bans whose mask matches lamer's currently connected mask.
    • Matches by mask - returns all bans whose mask contains the phrase 'lamer'.
    • Matches by ban comment - returns all bans whose comment contains word 'lamer'.
      • I think we should be searching them all and merge the results into one list?

Svetlana-T avatar Jul 18 '16 07:07 Svetlana-T

btsearch sounds reasonable

A couple of concerns that spring to mind are ensuring that it isn't possible to perform queries that would be taxing on the database (capping the number of rows returned at some sensible limit may be suffient for that) and avoiding information leaks - when reporting on active bans btinfo will only allow a user to see entries they are permitted to, and this should be the same for historical records.

mquin avatar Aug 19 '16 17:08 mquin