@internationalizeDocstring
        def password(self, irc, msg, args, user, password, newpassword):
            try:
                u = ircdb.users.getUser(msg.prefix)
            except KeyError:
                u = None
            if user is None:
                if u is None:
                    irc.errorNotRegistered(Raise=True)
                user = u
            if user.checkPassword(password) or \
               (u and u._checkCapability('owner')):
                user.setPassword(newpassword)
                ircdb.users.setUser(user)
                irc.replySuccess()
            else:
                irc.error(conf.supybot.replies.incorrectAuthentication())
[<name>] <old password> <new password>
dataset/ETHPy150Open ProgVal/Limnoria/plugins/User/plugin.py/User.set.password