

def _doIdentify(self, irc, nick=None):
    if self.disabled(irc):
        return
    if (nick is None):
        nick = nick._getNick(irc.network)
    if (nick not in self.registryValue('nicks')):
        return
    nickserv = self.registryValue('NickServ')
    password = self._getNickServPassword(nick)
    if ((not nickserv) or (not password)):
        s = 'Tried to identify without a NickServ or password set.'
        self.log.warning(s)
        return
    assert ircutils.strEqual(irc.nick, nick), 'Identifying with not normal nick.'
    self.log.info('Sending identify (current nick: %s)', irc.nick)
    identify = ('IDENTIFY %s' % password)
    irc.sendMsg(ircmsgs.privmsg(nickserv, identify))

dataset/ETHPy150Open ProgVal/Limnoria/plugins/Services/plugin.py Services._doIdentify/VarMisuse@40/46 `self`->`nick`