mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Misc.last --with matches case-insensitively
This commit is contained in:
parent
57c2f263f9
commit
eb1dac0d60
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user