Compare commits

..

No commits in common. 'no-tripcode' and 'master' have entirely different histories.

@ -25,8 +25,6 @@ this.hot = {
INTER_BOARD_NAVIGATION: true,
/* Disable tripcodes: Set to `null` to stop adding them, set to a specific string to have all tripcodes return that string (doesn't apply to `SPECIAL_TRIPCODES`.) */
NOTRIP: "(unbound)",
SPECIAL_TRIPCODES: {
kyubey: "/人◕ ‿‿ ◕人\",
},

@ -844,17 +844,12 @@ function allocate_post(msg, client, callback) {
var parsed = common.parse_name(msg.name);
post.name = parsed[0];
var spec = STATE.hot.SPECIAL_TRIPCODES;
const notrip = (n, s) => {
const b =n ? "!" :
s ? "!!" : undefined;
if(b) return b + (STATE.hot.NOTRIP || "");
};
if (spec && parsed[1] && parsed[1] in spec) {
post.trip = spec[parsed[1]];
}
else if (parsed[1] || parsed[2]) {
const trip = notrip(parsed[1], parsed[2]); //tripcode.hash(parsed[1], parsed[2]);
if (trip && STATE.hot.NOTRIP !== null)
var trip = "Can this just be a string?"; //tripcode.hash(parsed[1], parsed[2]);
if (trip)
post.trip = trip;
}
}

@ -14,7 +14,7 @@ Tripcode.Algorithm = {
Sha256T: hash.Kana.ALGO_SHA256_TRUNCATED,
};
Tripcode.make = (algo, salt) => {
return new Tripcode(algo,salt);
return new Tripcode(algo,salt);b
};
Object.freeze(Tripcode.Algorithm);

Loading…
Cancel
Save