Update class names.

This commit is contained in:
James Vega 2005-02-09 21:50:12 +00:00
parent 3c83811b3e
commit f7917bce77

View File

@ -1012,7 +1012,7 @@ class Plugin(irclib.IrcCallback):
return self._disabled.disabled(command, self.name()) return self._disabled.disabled(command, self.name())
def __init__(self, irc): def __init__(self, irc):
self.__parent = super(Privmsg, self) self.__parent = super(Plugin, self)
myName = self.name() myName = self.name()
self.log = log.getPluginLogger(myName) self.log = log.getPluginLogger(myName)
# We can't do this because of the specialness that Owner and Misc do. # We can't do this because of the specialness that Owner and Misc do.
@ -1245,16 +1245,16 @@ class SimpleProxy(RichReplyMethods):
Privmsg = Plugin # Backwards compatibility. Privmsg = Plugin # Backwards compatibility.
class PluginRegexp(Plugin): class PluginRegexp(Plugin):
"""Same as Privmsg, except allows the user to also include regexp-based """Same as Plugin, except allows the user to also include regexp-based
callbacks. All regexp-based callbacks must be specified in a set callbacks. All regexp-based callbacks must be specified in a set (or
(or list) attribute "regexps". list) attribute "regexps".
""" """
flags = re.I flags = re.I
regexps = () regexps = ()
addressedRegexps = () addressedRegexps = ()
Proxy = SimpleProxy Proxy = SimpleProxy
def __init__(self, irc): def __init__(self, irc):
self.__parent = super(PrivmsgCommandAndRegexp, self) self.__parent = super(PluginRegexp, self)
self.__parent.__init__(irc) self.__parent.__init__(irc)
self.res = [] self.res = []
self.addressedRes = [] self.addressedRes = []