mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Changed to use getattr again; getCommandMethod is pretty much reserved for, well, commands.
This commit is contained in:
parent
9327be4b59
commit
34e4891bbc
@ -1207,11 +1207,11 @@ class PluginRegexp(Plugin):
|
||||
self.res = []
|
||||
self.addressedRes = []
|
||||
for name in self.regexps:
|
||||
method = self.getCommandMethod(name)
|
||||
method = getattr(self, name)
|
||||
r = re.compile(method.__doc__, self.flags)
|
||||
self.res.append((r, name))
|
||||
for name in self.addressedRegexps:
|
||||
method = self.getCommandMethod(name)
|
||||
method = getattr(self, name)
|
||||
r = re.compile(method.__doc__, self.flags)
|
||||
self.addressedRes.append((r, name))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user