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