Ticket #1280 (closed Enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

/kickban command bans the nick, not the user/host

Reported by: Phoenix1701 Owned by: timothy
Priority: Low Milestone: Colloquy 2.3
Component: Colloquy (Mac) Version: 2.1 (Mac)
Severity: Minor Keywords: kick ban mask
Cc: eridius

Description

Given the following user:

Lamer120lamer@184-83-202-75.ipt.aol.com

If you issue the command

/kickban Lamer120

The following server commands will be issued:

MODE #channel +b Lamer120!*@*
KICK #channel Lamer120

This is not a particularly effective banmask, as the user can simply change their nick (to, say, Lamer121, or Lamer120_) and rejoin the channel; some more ambitious idiots even have scripts that do this automatically. A much more effective mechanism is to ban the username and a subset of the hostname (a subset rather than the whole thing due to dynamic IP addresses that may change parts of the hostname periodically):

MODE #channel +b *!lamer@*.aol.com
KICK #channel Lamer120

The algorithm for masking is, obviously, to mask out the entire nickname and all but the last two fields of the hostname -- this may on occasion be overbroad, but will almost never be too narrow.

Note also that this banmask is what was called for in the original bug (http://colloquy.info/project/ticket/19) that called for the addition of the /kickban command.

Change History

Changed 3 years ago by Rinoa

  • milestone set to Colloquy 2.3

Changed 3 years ago by zach

  • status changed from new to closed
  • resolution set to fixed

Fixed in [4235]

Note: See TracTickets for help on using tickets.