Misc.last --with matches case-insensitively

This commit is contained in:
James Vega 2004-08-16 17:34:16 +00:00
parent 57c2f263f9
commit eb1dac0d60

View File

@ -419,7 +419,7 @@ class Misc(callbacks.Privmsg):
predicates['in'] = f predicates['in'] = f
elif option == '--with': elif option == '--with':
def f(m, arg=arg): def f(m, arg=arg):
return arg in m.args[1] return arg.lower() in m.args[1].lower()
predicates.setdefault('with', []).append(f) predicates.setdefault('with', []).append(f)
elif option == '--regexp': elif option == '--regexp':
try: try: