mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Remove useless comments and fix a SyntaxError
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
dd4bc64e32
commit
bb759259b8
@ -140,7 +140,7 @@ def isChannel(s, chantypes='#&+!', channellen=50):
|
||||
len(s) <= channellen and \
|
||||
len(s.split(None, 1)) == 1
|
||||
|
||||
_patternCache = utils.structures.CacheDict(1000) # Arbitrarily chosen.
|
||||
_patternCache = utils.structures.CacheDict(1000)
|
||||
def _hostmaskPatternEqual(pattern, hostmask):
|
||||
try:
|
||||
return _patternCache[pattern](hostmask) is not None
|
||||
@ -168,7 +168,7 @@ def _hostmaskPatternEqual(pattern, hostmask):
|
||||
_patternCache[pattern] = f
|
||||
return f(hostmask) is not None
|
||||
|
||||
_hostmaskPatternEqualCache = utils.structures.CacheDict{1000) # Arbitrarily chosen.}
|
||||
_hostmaskPatternEqualCache = utils.structures.CacheDict(1000)
|
||||
def hostmaskPatternEqual(pattern, hostmask):
|
||||
"""pattern, hostmask => bool
|
||||
Returns True if hostmask matches the hostmask pattern pattern."""
|
||||
|
Loading…
Reference in New Issue
Block a user