Alias: ignore case in alias search
This commit is contained in:
parent
2aa369add7
commit
04c5a641d1
@ -188,10 +188,10 @@ class DrBotIRC(irclib.IRC):
|
||||
alias_list = self.config.options('Alias')
|
||||
|
||||
for alias in alias_list:
|
||||
alias_re = re.compile(alias)
|
||||
alias_re = re.compile(alias, re.IGNORECASE)
|
||||
if alias_re.search(what):
|
||||
# we found an alias for our given string, doing a replace
|
||||
command = re.sub(alias, self.config.get('Alias', alias), what)
|
||||
command = re.sub(alias, self.config.get('Alias', alias), what, flags=re.IGNORECASE)
|
||||
event.arguments()[0] = command
|
||||
|
||||
# now we have to check it for recursions again
|
||||
|
Loading…
Reference in New Issue
Block a user