

def isImmune(self, irc, msg):
    if (not ircutils.isUserHostmask(msg.prefix)):
        irc.log.debug("%q is immune, it's a server.", msg)
        return True
    if ircutils.strEqual(msg.nick, irc.nick):
        self.log.debug("%q is immune, it's me.", msg)
        return True
    if (msg.nick in self.registryValue('immune', msg.args[0])):
        self.log.debug("%q is immune, it's configured to be immune.", msg)
        return True
    return False

dataset/ETHPy150Open ProgVal/Limnoria/plugins/Protector/plugin.py Protector.isImmune/VarMisuse@29/37 `self`->`irc`