-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back to banning host instead of exact mask
This only happens on the newly introduced account extban (in case the user does not have an account, or the server does not provide accounts) so this does not change existing behavior. Falling back to the host instead of the exact mask makes it less easy to evade these bans
- Loading branch information
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,9 +245,9 @@ def join(): | |
'*[email protected]') | ||
join() | ||
with conf.supybot.protocols.irc.banmask.context(['account']): | ||
# falls back from --account to config, then to exact hostmask | ||
# falls back from --account to config, then to only the host | ||
self.assertKban('kban --account foobar', | ||
'foobar!user@host.domain.tld') | ||
'*!*@host.domain.tld') | ||
join() | ||
self.assertKban('kban --account --host foobar', | ||
'*!*@host.domain.tld') | ||
|
@@ -277,9 +277,9 @@ def join(): | |
'*[email protected]') | ||
join() | ||
with conf.supybot.protocols.irc.banmask.context(['account']): | ||
# falls back from --account to config, then to exact hostmask | ||
# falls back from --account to config, then to only the host | ||
self.assertKban('kban --account foobar', | ||
'foobar!user@host.domain.tld') | ||
'*!*@host.domain.tld') | ||
join() | ||
self.assertKban('kban --account --host foobar', | ||
'*!*@host.domain.tld') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters