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,16 +182,11 @@ 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:
else: p = p.split(extprefix)[0]
if pattern.find(extprefix) != -1: if ircutils.isUserHostmask(p):
# channel forwards cache[key] = matchHostmask(p,n)
pattern = pattern.split(extprefix)[0]
if ircutils.isUserHostmask(pattern):
cache[key] = matchHostmask(pattern,n)
else:
log.error('%s pattern is not supported' % pattern)
else: else:
log.error('%s pattern is not supported' % pattern) log.error('%s pattern is not supported' % pattern)
return cache[key] return cache[key]