mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 04:51:07 -05:00
Fix regression from previous commit.
This commit is contained in:
parent
4f320388dd
commit
065d698b31
@ -252,7 +252,8 @@ def getBestPattern(n, irc, useIp=False, resolve=True):
|
|||||||
results = []
|
results = []
|
||||||
(nick, ident, host) = ircutils.splitHostmask(n.prefix)
|
(nick, ident, host) = ircutils.splitHostmask(n.prefix)
|
||||||
if host.startswith(('gateway/tor-sasl/', 'gateway/vpn/', 'user/')) \
|
if host.startswith(('gateway/tor-sasl/', 'gateway/vpn/', 'user/')) \
|
||||||
or ident.startswith('~') or n.realname.startswith('[https://web.libera.chat]'):
|
or ident.startswith('~') or (n.realname and
|
||||||
|
n.realname.startswith('[https://web.libera.chat]')):
|
||||||
ident = '*'
|
ident = '*'
|
||||||
if n.ip is not None:
|
if n.ip is not None:
|
||||||
if len(n.ip.split(':')) > 4:
|
if len(n.ip.split(':')) > 4:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user