

@internationalizeDocstring
def password(self, irc, msg, args, nick, password):
    '<nick> [<password>]\n\n        Sets the NickServ password for <nick> to <password>.  If <password> is\n        not given, removes <nick> from the configured nicks.\n        '
    if (not password):
        try:
            self.registryValue('nicks').remove(msg)
            irc.replySuccess()
        except KeyError:
            irc.error(_('That nick was not configured with a password.'))
            return
    else:
        self.registryValue('nicks').add(nick)
        config.registerNick(nick, password)
        irc.replySuccess()

dataset/ETHPy150Open ProgVal/Limnoria/plugins/Services/plugin.py Services.password/VarMisuse@46/124 `nick`->`msg`