Fixed globbing in User.list.

This commit is contained in:
Jeremy Fincher 2004-04-17 16:40:32 +00:00
parent 747b8f483f
commit f68ce97d97

View File

@ -76,8 +76,8 @@ class User(callbacks.Privmsg):
if '*' not in glob and '?' not in glob: if '*' not in glob and '?' not in glob:
glob = '*%s*' % glob glob = '*%s*' % glob
r = re.compile(fnmatch.translate(glob), re.I) r = re.compile(fnmatch.translate(glob), re.I)
def p(s): def p(u):
return r.match(s) is not None return r.match(u.name) is not None
predicates.append(p) predicates.append(p)
users = [] users = []
for u in ircdb.users.itervalues(): for u in ircdb.users.itervalues():