Let's give do* methods at least a SimpleProxy, if for no other reason than to stave off the questions and consternation resulting from *not* having an irc.reply available.

This commit is contained in:
Jeremy Fincher 2005-03-12 22:27:23 +00:00
parent aefcd594df
commit 7445ed05b8

View File

@ -1127,6 +1127,7 @@ class PluginMixin(BasePlugin, irclib.IrcCallback):
return canonicalName(self.name()) return canonicalName(self.name())
def __call__(self, irc, msg): def __call__(self, irc, msg):
irc = SimpleProxy(irc, msg)
if msg.command == 'PRIVMSG': if msg.command == 'PRIVMSG':
if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]): if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]):
self.__parent.__call__(irc, msg) self.__parent.__call__(irc, msg)