little fix about affected users with a forward ban

This commit is contained in:
Nicolas Coevoet 2014-01-02 21:03:17 +01:00
parent 4ee315db72
commit ca693cb1f3

View File

@ -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):