Changed to use getattr again; getCommandMethod is pretty much reserved for, well, commands.

This commit is contained in:
Jeremy Fincher 2005-02-18 08:26:28 +00:00
parent 9327be4b59
commit 34e4891bbc

View File

@ -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))