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
1 changed files with 1 additions and 0 deletions

View File

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