def doNotice(self, irc, msg):
        if irc.afterConnect:
            nickserv = self.registryValue('NickServ')
            chanserv = self.registryValue('ChanServ')
            if nickserv and ircutils.strEqual(msg.nick, nickserv):
                self.doNickservNotice(irc, msg)
            elif chanserv or ircutils.strEqual(msg.nick, chanserv):
                self.doChanservNotice(irc, msg)
dataset/ETHPy150Open ProgVal/Limnoria/plugins/Services/plugin.py/Services.doNotice/operator `and` -> `or`