mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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.res = []
|
||||||
self.addressedRes = []
|
self.addressedRes = []
|
||||||
for name in self.regexps:
|
for name in self.regexps:
|
||||||
method = self.getCommandMethod(name)
|
method = getattr(self, name)
|
||||||
r = re.compile(method.__doc__, self.flags)
|
r = re.compile(method.__doc__, self.flags)
|
||||||
self.res.append((r, name))
|
self.res.append((r, name))
|
||||||
for name in self.addressedRegexps:
|
for name in self.addressedRegexps:
|
||||||
method = self.getCommandMethod(name)
|
method = getattr(self, name)
|
||||||
r = re.compile(method.__doc__, self.flags)
|
r = re.compile(method.__doc__, self.flags)
|
||||||
self.addressedRes.append((r, name))
|
self.addressedRes.append((r, name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user