added faq link

hash-command-arbitrary
Avril 4 years ago
parent 8f0ac165d7
commit 5219dde953
Signed by untrusted user: flanchan
GPG Key ID: 284488987C31F630

@ -202,7 +202,7 @@ var OS = OneeSama.prototype;
var break_re = new RegExp("(\\S{" + DEFINES.WORD_LENGTH_LIMIT + "})");
/* internal refs, embeds */
var ref_re = />>(\d+|>\/s\/.+|>\/music\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10})/;
var ref_re = />>(\d+|>\/s\/.+|>\/music\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10}|>\/rurus\/)/;
OS.hook = function (name, func) {
var hs = this.hooks[name];
@ -263,6 +263,9 @@ OS.red_string = function (ref) {
var num = parseInt(ref.slice(4+2), 10);
dest = '../outbound/nap/' + (num ? ''+num : '');
}
else if (prefix == '>/r') {
dest ="/faq.html";
}
else {
this.tamashii(parseInt(ref, 10));
return;

@ -608,6 +608,14 @@ web.resource(/^\/outbound\/sysint\/(\d{0,10})$/, function (req, params, cb) {
cb(null, 303.1, url);
});
web.resource(/^\/outbound\/rurus\/(\d{0,10})$/, function (req, params, cb) {
var thread = parseInt(params[1], 10);
var url = '/faq.html';
if (thread)
url += thread;
cb(null, 303.1, url);
});
web.resource(/^\/outbound\/nap\/(\d{0,10})$/, function (req, params, cb) {
var thread = parseInt(params[1], 10);
var url = 'https://nineball.party/nap/';

Loading…
Cancel
Save