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