A Twitch.tv viewer reward and games system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
390 B

12 years ago
  1. module.exports = OldPasswordPacket;
  2. function OldPasswordPacket(options) {
  3. options = options || {};
  4. this.scrambleBuff = options.scrambleBuff;
  5. }
  6. OldPasswordPacket.prototype.parse = function(parser) {
  7. this.scrambleBuff = parser.parseNullTerminatedBuffer();
  8. };
  9. OldPasswordPacket.prototype.write = function(writer) {
  10. writer.writeBuffer(this.scrambleBuff);
  11. writer.writeFiller(1);
  12. };