mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-27 13:31:10 -05:00
little fix about affected users with a forward ban
This commit is contained in:
parent
4ee315db72
commit
ca693cb1f3
17
plugin.py
17
plugin.py
@ -182,18 +182,13 @@ def match (pattern,n,irc):
|
|||||||
k = pattern[(pattern.rfind(':')+1):]
|
k = pattern[(pattern.rfind(':')+1):]
|
||||||
cache[key] = matchHostmask(k,n)
|
cache[key] = matchHostmask(k,n)
|
||||||
else:
|
else:
|
||||||
if ircutils.isUserHostmask(pattern):
|
p = pattern
|
||||||
cache[key] = matchHostmask(pattern,n)
|
if p.find(extprefix) != -1:
|
||||||
|
p = p.split(extprefix)[0]
|
||||||
|
if ircutils.isUserHostmask(p):
|
||||||
|
cache[key] = matchHostmask(p,n)
|
||||||
else:
|
else:
|
||||||
if pattern.find(extprefix) != -1:
|
log.error('%s pattern is not supported' % pattern)
|
||||||
# channel forwards
|
|
||||||
pattern = pattern.split(extprefix)[0]
|
|
||||||
if ircutils.isUserHostmask(pattern):
|
|
||||||
cache[key] = matchHostmask(pattern,n)
|
|
||||||
else:
|
|
||||||
log.error('%s pattern is not supported' % pattern)
|
|
||||||
else:
|
|
||||||
log.error('%s pattern is not supported' % pattern)
|
|
||||||
return cache[key]
|
return cache[key]
|
||||||
|
|
||||||
def getBestPattern (n,irc):
|
def getBestPattern (n,irc):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user